Browse Source

Muda a representacao do usuario na navbar

pull/615/head
Eduardo Calil 8 years ago
parent
commit
9d04533646
  1. BIN
      sapl/static/img/authenticated.png
  2. 9
      sapl/templates/base.html

BIN
sapl/static/img/authenticated.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

9
sapl/templates/base.html

@ -134,15 +134,10 @@
<li><a href="{% url 'sapl.base:login' %}"><img src="{% static 'img/user.png' %}"></a></li>
{% else %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
{% if user.first_name or user.last_name %}
{{ user.get_full_name }}
{% else %}
{{ user.username }}
{% endif %}
<span class="caret"></span>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><img height="30" width="30" src="{% static 'img/authenticated.png' %}"><span class="caret"></span></a>
</a>
<ul class="dropdown-menu">
<li><a>{{user.username}}</a></li>
<li><a href="{% url 'sapl.base:logout' %}">Sair</a></li>
</ul>
</li>

Loading…
Cancel
Save