Skip to content

Commit

Permalink
Show logged-in users form in navbar and year on selection page.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 8, 2015
1 parent 0838cb5 commit 8fbbd2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kinza/views/index.tt
Expand Up @@ -22,7 +22,7 @@
[% END -%]
</ul>
[% ELSE -%]
<p>Here are your options:</p>
<p>Here are the options available to [% student.form.year.name %]:</p>
<form method="POST" action="/save">
<p><input type="submit" value="Save"></p>
<table width="100%" class="table table-striped table-bordered table-hover table-condensed">
Expand Down
2 changes: 1 addition & 1 deletion Kinza/views/layouts/main.tt
Expand Up @@ -33,7 +33,7 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
[% IF session.email -%]
<li><a>[% session.name %]</a></li>
<li><a>[% session.name %] ([% student.form.name %])</a></li>
<li><a href="/logout">Log out</a></li>
[% ELSE -%]
<li><a href="/login">Log in</a></li>
Expand Down

0 comments on commit 8fbbd2d

Please sign in to comment.