diff options
Diffstat (limited to '')
-rw-r--r-- | tmpl/login.html | 4 | ||||
-rw-r--r-- | tmpl/student.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tmpl/login.html b/tmpl/login.html index 54b68d3..d4c2da1 100644 --- a/tmpl/login.html +++ b/tmpl/login.html @@ -48,13 +48,13 @@ <main> <div id="login-box"> <p> - {{- .notes -}} + {{- if eq .Notes "" -}}{{- .Notes -}}{{- end -}} </p> <p> You have not authenticated. You must sign in to use this service. </p> <p> - <a class="btn btn-primary" href="{{- .authURL -}}">Sign in with Microsoft</a> + <a class="btn btn-primary" href="{{- .AuthURL -}}">Sign in with Microsoft</a> </p> </div> </main> diff --git a/tmpl/student.html b/tmpl/student.html index 8b6982b..0503b04 100644 --- a/tmpl/student.html +++ b/tmpl/student.html @@ -3,7 +3,7 @@ <html lang="en"> <head> <title> - {{ .user.Name }} – CCA Selection System + {{ .Name }} – CCA Selection System </title> <link rel="stylesheet" href="/static/style.css" /> <meta charset="utf-8" /> @@ -38,7 +38,7 @@ </nav> </div> <div class="header-right"> - <p>{{- .user.Name }} ({{ .user.Department -}})</p> + <p>{{- .Name }} ({{ .Department -}})</p> </div> </div> </header> @@ -131,7 +131,7 @@ </tr> </thead> <tbody> - {{- range .courses }} + {{- range .Courses }} <tr class="courseitem" id="course{{.ID}}"> {{ if lt .Selected .Max -}} <th scope="row"><input aria-label="Enroll in course" class="coursecheckbox" type="checkbox" id="tick{{.ID}}" name="tick{{.ID}}" value="tick{{.ID}}"></input><span id="coursestatus{{.ID}}"></span></td> |