-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made Major Updates to Leath's List, Added Browsing
- Loading branch information
Showing
10 changed files
with
206 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{{set . "title" .dept }} | ||
{{template "header.html" .}} | ||
|
||
<div class="container" id="main"> | ||
<br/> | ||
{{ range .classes }} | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4><a href="/class/{{ .Department }}/{{ .Number }}">{{ .Department }} {{ .Number }}</a> - <strong>{{ .Name }}</strong> <a href="#" class="pull-right slider"><i class="fa {{ if or (eq .Name "Independent Study") (eq .Name "Capstone Research") }}fa-plus-square{{ else }}fa-minus-square{{ end }}"></i></a></h4> | ||
</div> | ||
<div class="list-group" {{ if or (eq .Name "Independent Study") (eq .Name "Capstone Research") }}style="display:none;"{{ end }}> | ||
{{ range .Sections }} | ||
<div class="list-group-item {{ sectionBorder . }}"> | ||
<div class="row"> | ||
<div class="col-xs-1"> | ||
<strong>{{ .SISNumber }}</strong> | ||
</div> | ||
<div class="col-xs-5"> | ||
<p> | ||
{{ .Number }} - <i>{{.Type}}</i> <br/> | ||
{{ .Topic }} | ||
</p> | ||
</div> | ||
<div class="col-xs-6"> | ||
{{ range .Meetings }} | ||
<p style="margin: 0;"> | ||
{{ if .Days.ContainsString "M" }}M{{ else }}_{{ end }} | ||
{{ if .Days.ContainsString "T" }}T{{ else }}_{{ end }} | ||
{{ if .Days.ContainsString "W" }}W{{ else }}_{{ end }} | ||
{{ if .Days.ContainsString "R" }}R{{ else }}_{{ end }} | ||
{{ if .Days.ContainsString "F" }}F{{ else }}_{{ end }} | ||
{{ if .Days.ContainsString "S" }}S{{ else }}{{ end }} | ||
- {{ .StartTime.Format "3:04PM" }} to {{ .EndTime.Format "3:04PM" }} | ||
<a href="http://www.ratemyprofessors.com/SelectTeacher.jsp?searchName={{ lastName .Instructor }}&search_submit1=Search&sid=1277">{{ .Instructor }}</a> <span class="text-muted">{{ .Location }}</span> | ||
</p> | ||
{{ end }} | ||
</div> | ||
</div> | ||
{{ .Enrollment }} <span class="text-muted">students</span> / {{ .Capacity }} <span class="text-muted">seats</span> | ||
</div> | ||
{{ end }} | ||
</div> | ||
|
||
<div class="panel-footer"> | ||
<a href="http://www.hoosbooks.com/#!{{ .Department }}-{{ .Number }}-55" class="btn btn-link btn-xs">Purchase Textbooks</a> | ||
<a href="https://evals.itc.virginia.edu/course-selectionguide/pages/SGMain.jsp?cmp={{ .Department }},{{ .Number }}," class="btn btn-link btn-xs">Course Evals</a> | ||
<!-- <a href="https://evals.itc.virginia.edu/course-selectionguide/pages/SGMain.jsp?cmp={{ .Department }},{{ .Number }}," class="btn btn-success btn-xs pull-right">+ Add to My Class List</a> --> | ||
</div> | ||
</div> | ||
{{ else }} | ||
<h1>Sorry, couldn't find any classes for that department.</h1> | ||
{{ end }} | ||
</div> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
$(".slider").click(function() { | ||
if ($(this).children("i").hasClass("fa-plus-square")) { | ||
$(this).parent().parent().parent().children(".list-group").slideDown(); | ||
$(this).children("i").removeClass("fa-plus-square"); | ||
$(this).children("i").addClass("fa-minus-square"); | ||
} else { | ||
$(this).parent().parent().parent().children(".list-group").slideUp(); | ||
$(this).children("i").removeClass("fa-minus-square"); | ||
$(this).children("i").addClass("fa-plus-square"); | ||
} | ||
return false; | ||
}); | ||
}); | ||
</script> | ||
|
||
{{template "footer.html" .}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package schedule | ||
|
||
import "labix.org/v2/mgo" | ||
|
||
func (c ClassList) SaveToDB(collection *mgo.Collection) { | ||
// collection.RemoveAll(nil) | ||
// for _, v := range c { | ||
// collection.Insert(v) | ||
// } | ||
} |