Update /courses teacher link based on logged in state

Go to /teachers if logged out
Go to /courses/teachers if logged in
This commit is contained in:
Matt Lott 2015-12-01 12:36:39 -08:00
parent 68e2b5bf8f
commit 8f7146449b

View file

@ -2,7 +2,10 @@ extends /templates/base
block content
.pull-right
a(href="/courses/teachers") Teachers, click here!
if me.isAnonymous()
a(href="/teachers") Teachers, click here!
else
a(href="/courses/teachers") Teachers, click here!
br
#main-content