From 90fe02430c828b0d99d5f60c3073c54278d85236 Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Fri, 22 Jul 2016 07:33:52 -0400 Subject: Cleaned up the routing for users. Header changeable depending on whether user is logged in or not. Logout option. --- views/partials/header.hbs | 14 +++++++++++--- views/signin.hbs | 2 +- views/signup.hbs | 2 +- views/user_profile_alt.hbs | 14 +++++++------- 4 files changed, 20 insertions(+), 12 deletions(-) (limited to 'views') diff --git a/views/partials/header.hbs b/views/partials/header.hbs index 4e7f1c2..9140302 100644 --- a/views/partials/header.hbs +++ b/views/partials/header.hbs @@ -36,15 +36,23 @@
  • Fourth Year
  • -
  • Sign In
  • + {{# if login }} +
  • Profile Page
  • + {{ else }} +
  • Sign In
  • + {{/if}}
  • Admin Panel
  • -
  • Sign up
  • + {{# if login}} +
  • Logout
  • + {{ else }} +
  • Sign up
  • + {{/if}}