Fixed conditional user bit on the homepage

Improved text formatting on the base template
This commit is contained in:
Tom Price
2014-12-03 22:39:13 +00:00
parent d90306a5e0
commit bad3af9bf3
2 changed files with 4 additions and 4 deletions

View File

@@ -7,9 +7,9 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="well"> <div class="well">
{% if request.user %} {% if user.is_authenticated %}
<h3>Welcome back {{ request.user.get_full_name }}.<br /> <h3>Welcome back {{ user.get_full_name }}.<br />
<small>Your rigboard initials are {{ request.user.initials }}</small></h3> <small>Your rigboard initials are {{ user.initials }}</small></h3>
{% endif %} {% endif %}
<h3>There are currently {{ rig_count }} rigs coming up.</h3> <h3>There are currently {{ rig_count }} rigs coming up.</h3>
<a class="btn btn-default" href="{% url 'rigboard' %}">View Rigboard</a> <a class="btn btn-default" href="{% url 'rigboard' %}">View Rigboard</a>

View File

@@ -81,7 +81,7 @@
</li> </li>
</ul> </ul>
{% else %} {% else %}
<a href="{% url "login" %}?next={{ request.build_absolute_uri }}"> <a href="{% url "login" %}?next={{ request.path }}">
<span class="icon-user"></span> <span class="icon-user"></span>
Hi guest Hi guest
</a> </a>