From bad3af9bf3a0b78f41eaf60ed1bc0d09846f913d Mon Sep 17 00:00:00 2001 From: Tom Price Date: Wed, 3 Dec 2014 22:39:13 +0000 Subject: [PATCH] Fixed conditional user bit on the homepage Improved text formatting on the base template --- RIGS/templates/RIGS/index.html | 6 +++--- templates/base.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RIGS/templates/RIGS/index.html b/RIGS/templates/RIGS/index.html index 6266854e..9d82fa70 100644 --- a/RIGS/templates/RIGS/index.html +++ b/RIGS/templates/RIGS/index.html @@ -7,9 +7,9 @@
- {% if request.user %} -

Welcome back {{ request.user.get_full_name }}.
- Your rigboard initials are {{ request.user.initials }}

+ {% if user.is_authenticated %} +

Welcome back {{ user.get_full_name }}.
+ Your rigboard initials are {{ user.initials }}

{% endif %}

There are currently {{ rig_count }} rigs coming up.

View Rigboard diff --git a/templates/base.html b/templates/base.html index cca1fc2a..ddc0d5ca 100644 --- a/templates/base.html +++ b/templates/base.html @@ -81,7 +81,7 @@ {% else %} - + Hi guest