]> git.parisson.com Git - telemeta.git/commitdiff
fix home for visitors
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 24 May 2013 13:42:30 +0000 (15:42 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 24 May 2013 13:42:30 +0000 (15:42 +0200)
telemeta/templates/telemeta/base.html

index f663ba8344230f83fa74aa007cc9f8f43e0b87e5..d581a6612c797168bae076a4141ade64d40b98f5 100644 (file)
 
 <div id="auth_info">
 {% if user.is_authenticated %}
-<img src="{{ STATIC_URL }}telemeta/images/user.png" alt="user" style="vertical-align:middle" />
-{% trans "Welcome" %},
+
+  <img src="{{ STATIC_URL }}telemeta/images/user.png" alt="user" style="vertical-align:middle" />
+  {% trans "Welcome" %},
 {% if user.first_name or user.last_name %}
-{{ user.first_name }} {{ user.last_name }} |
+  {{ user.first_name }} {{ user.last_name }} |
 {% else %}
-{{ user.username }} |
+  {{ user.username }} |
+{% endif %}
+{% if perms.telemeta.can_view_users_and_profiles %}
+  <a href="{% url telemeta-profile-detail user.username %}">{% trans "Profile" %}</a> |
 {% endif %}
+  <a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
 {% if perms.telemeta.can_view_users_and_profiles %}
-<a href="{% url telemeta-profile-detail user.username %}">{% trans "Profile" %}</a> |
+  <a href="{% url telemeta-logout %}">{% trans "Sign out" %}
+  <img src="{{ STATIC_URL }}telemeta/images/logout.png" alt="logout" style="vertical-align:middle" /></a>
 {% endif %}
-<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
-<a href="{% url telemeta-logout %}">{% trans "Sign out" %}
-<img src="{{ STATIC_URL }}telemeta/images/logout.png" alt="logout" style="vertical-align:middle" /></a>
+
 {% else %}
-<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
-<a href="{% url telemeta-login %}">{% trans "Sign in" %}</a>
+  <a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a>
+  <a href="{% url telemeta-login %}">{% trans "Sign in" %}</a>
 {% endif %}
 </div>