restructure base html to display properly on small devices

This commit is contained in:
Jan Dittberner 2015-01-17 22:05:47 +01:00
parent d906b9e497
commit 7d6e0386d8

View file

@ -50,9 +50,6 @@
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
{% user_display user as user_display %}
{% url 'user_profile' slug=user.username as profile_url %}
<p class="navbar-text">{% blocktrans %}Signed in as <a href="{{ profile_url }}" class="navbar-link" title="My Profile">{{ user_display }}</a>{% endblocktrans %}</p>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{% trans "My Account" %} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
@ -66,6 +63,11 @@
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li>
{% endif %}
</ul>
{% if user.is_authenticated %}
{% user_display user as user_display %}
{% url 'user_profile' slug=user.username as profile_url %}
<p class="navbar-text navbar-right">{% blocktrans %}Signed in as <a href="{{ profile_url }}" class="navbar-link" title="My Profile">{{ user_display }}</a>{% endblocktrans %}</p>
{% endif %}
</div><!--/.nav-collapse -->
</div>
</div>