Move language selector to bottom of the sidebar
This commit is contained in:
parent
249a1182d4
commit
66530351ad
|
@ -55,43 +55,19 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
{# <!-- user profile menu --> #}
|
||||
<div id="user-profile-menu" class="mt-5 pt-1">
|
||||
<button type="button" class="btn nav-link text-light w-100">
|
||||
<div id="user-profile-menu" class="mt-5 pt-1 dropdown dropright">
|
||||
<button type="button" class="btn nav-link text-light w-100" data-toggle="dropdown">
|
||||
<img id="user-avatar" class="float-right" width="64" height="64" src="{% static "musician/images/default-profile-picture.png" %}" alt="user-profile-picture"/>
|
||||
|
||||
<strong>{{ profile.username }}</strong><br/>
|
||||
|
||||
<div class="dropdown">
|
||||
<a class="btn p-0 text-light" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<i class="fas fa-cog"></i> {% trans "Settings" %}
|
||||
</a>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="{% url 'musician:profile' %}"><i class="fas fa-user-circle"></i> {% trans 'Profile' %}</a>
|
||||
<a class="dropdown-item" href="{% url 'musician:billing' %}"><i class="fas fa-receipt"></i> {% trans 'Billing' %}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dropdown">
|
||||
<a class="btn p-0 text-light" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<i class="fas fa-globe"></i> {% trans "Language" %}
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{% for code, language in languages %}
|
||||
<a class="dropdown-item" href="{% url 'musician:profile-set-lang' code %}">{{ language }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="sidebar-logout">
|
||||
|
@ -111,6 +87,17 @@
|
|||
</div>
|
||||
|
||||
<div class="mt-4 pr-3 pb-2 text-light d-block text-right">
|
||||
<div class="dropdown">
|
||||
<a class="btn p-0 text-light" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<i class="fas fa-globe"></i> {% trans "Language" %}
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{% for code, language in languages %}
|
||||
<a class="dropdown-item" href="{% url 'musician:profile-set-lang' code %}">{{ language }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<small>Panel Version {{ version }}</small>
|
||||
</div>
|
||||
{% endblock sidebar %}
|
||||
|
|
Loading…
Reference in a new issue