Commit 919a6b13 by Oláh István Gergely

templates: fix css issues, cleanup

parent 83580ad2
...@@ -71,7 +71,7 @@ html { ...@@ -71,7 +71,7 @@ html {
padding-bottom: 12.5px; padding-bottom: 12.5px;
} }
.navbar-nav > li:last-child > a { #dashboard-menu > li:last-child > a {
padding-top: 4px; padding-top: 4px;
padding-bottom: 0px; padding-bottom: 0px;
padding-right: 0px; padding-right: 0px;
......
{% load i18n %} {% load i18n %}
{% if user and user.pk %} {% if user and user.pk %}
{% if user.profile %} {% if show_pic %}
<img class="profile-avatar" src="{{ user.profile.get_avatar_url }}" title=" <img class="profile-avatar" src="{{ user.profile.get_avatar_url }}" />
{% endif %} {% endif%}
{% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user.username }}{% endif %}{% if new_line %}<br />{% endif %} {% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user.username }}{% endif %}{% if new_line %}<br />{% endif %}
{% if show_org %} {% if show_org %}
...@@ -13,5 +14,5 @@ ...@@ -13,5 +14,5 @@
({% trans "username" %}: {{ user.username }}) ({% trans "username" %}: {{ user.username }})
{% endif %} {% endif %}
{% endif %} {% endif %}
" >
{% endif %} {% endif %}
...@@ -47,7 +47,18 @@ ...@@ -47,7 +47,18 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li class="visible-xs"> <li>
<a href="{% url "dashboard.views.profile-preferences" %}">
<i class="fa fa-user"></i>
{% include "dashboard/_display-name.html" with user=user show_org=True %}
</a>
</li>
<li>
<a href="{% url "logout" %}?next={% url "login" %}">
<i class="fa fa-sign-out"></i> {% trans "Log out" %}
</a>
</li>
<li class="visible-xs">
<a href="{% url "dashboard.views.notifications" %}"> <a href="{% url "dashboard.views.notifications" %}">
{% trans "Notifications" %} {% trans "Notifications" %}
{% if NEW_NOTIFICATIONS_COUNT > 0 %} {% if NEW_NOTIFICATIONS_COUNT > 0 %}
...@@ -70,17 +81,12 @@ ...@@ -70,17 +81,12 @@
<li>{% trans "Loading..." %}</li> <li>{% trans "Loading..." %}</li>
</ul> </ul>
</li> </li>
<li> <li>
<a href="{% url "logout" %}?next={% url "login" %}"> <a href="{% url "dashboard.views.profile-preferences" %}">
<i class="fa fa-sign-out"></i> {% trans "Log out" %} <img class="profile-avatar" src="{{ user.profile.get_avatar_url }}" />
</a> </a>
</li>
<li>
<a href="{% url "dashboard.views.profile-preferences" %}">
{% include "dashboard/_display-name.html" with user=user show_org=True %}
</a>
</li> </li>
</ul> </ul>
{% else %} {% else %}
<a class="navbar-brand pull-right" href="{% url "login" %}?next={{ request.path }}"><i class="fa fa-sign-in"></i> {% trans "Log in " %}</a> <a class="navbar-brand pull-right" href="{% url "login" %}?next={{ request.path }}"><i class="fa fa-sign-in"></i> {% trans "Log in " %}</a>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</strong> </strong>
{% endspaceless %}{% if a.times < 2 %} <span title="{{ a.started }}">{{ a.started|arrowfilter:LANGUAGE_CODE }}</span>{% endif %}{% if a.user %}, {% endspaceless %}{% if a.times < 2 %} <span title="{{ a.started }}">{{ a.started|arrowfilter:LANGUAGE_CODE }}</span>{% endif %}{% if a.user %},
<a class="no-style-link" href="{% url "dashboard.views.profile" username=a.user.username %}"> <a class="no-style-link" href="{% url "dashboard.views.profile" username=a.user.username %}">
{% include "dashboard/_display-name.html" with user=a.user show_org=True %} {% include "dashboard/_display-name.html" with user=a.user show_org=True show_pic=True %}
</a> </a>
{% endif %} {% endif %}
{% if a.is_abortable_for_user %} {% if a.is_abortable_for_user %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment