mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
Minor fixes to topbar changes
- Move the apps and configuration items outside of navbar header and into left navbar group so that it collapses properly for mobile view. - Change link titles to reflect label text. - Indent properly, remove blank lines. - Remove need to tweak font size of items.
This commit is contained in:
parent
384327af71
commit
9c65f69e89
@ -91,25 +91,31 @@
|
|||||||
title="{{ box_name }}">
|
title="{{ box_name }}">
|
||||||
<img src="{% static 'theme/img/freedombox-logo-32px.png' %}"
|
<img src="{% static 'theme/img/freedombox-logo-32px.png' %}"
|
||||||
alt="{{ box_name }}" />
|
alt="{{ box_name }}" />
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<span class="navbar-logo-text">{% trans "Home" %}</span>
|
|
||||||
{% endif %}
|
|
||||||
</a>
|
</a>
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<a href="{% url 'apps:index' %}" class="navbar-brand"
|
|
||||||
title="{% trans "Applications" %}">
|
|
||||||
<span class="glyphicon glyphicon-th"></span>
|
|
||||||
<span class="navbar-logo-text">{% trans "Apps" %}</span>
|
|
||||||
</a>
|
|
||||||
<a href="{% url 'system:index' %}"
|
|
||||||
title="{% trans "System Configuration" %}" class="navbar-brand">
|
|
||||||
<span class="glyphicon-cog glyphicon nav-icon"></span>
|
|
||||||
<span class="navbar-logo-text">{% trans "Configuration" %}</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse navbar-collapse">
|
<div class="collapse navbar-collapse">
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'index' %}" title="{% trans "Home" %}">
|
||||||
|
{% trans "Home" %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'apps:index' %}" title="{% trans "Apps" %}">
|
||||||
|
<span class="glyphicon glyphicon-th"></span>
|
||||||
|
{% trans "Apps" %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'system:index' %}" title="{% trans "Configuration" %}">
|
||||||
|
<span class="glyphicon glyphicon-cog nav-icon"></span>
|
||||||
|
{% trans "Configuration" %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
{% block mainmenu_right %}
|
{% block mainmenu_right %}
|
||||||
<li>
|
<li>
|
||||||
@ -119,14 +125,12 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
|
||||||
|
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="{% url 'users:edit' user.username %}"
|
<a href="{% url 'users:edit' user.username %}"
|
||||||
class="dropdown-toggle" data-toggle="dropdown"
|
class="dropdown-toggle" data-toggle="dropdown"
|
||||||
role="button" aria-expanded="false">
|
role="button" aria-expanded="false">
|
||||||
<i class="glyphicon glyphicon-user nav-icon"></i>
|
<i class="glyphicon glyphicon-user nav-icon"></i>
|
||||||
<span class="navbar-logo-text">{{ user.username }}</span>
|
{{ user.username }}
|
||||||
<span class="caret"></span></a>
|
<span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li><a href="{% url 'users:edit' user.username %}"
|
<li><a href="{% url 'users:edit' user.username %}"
|
||||||
@ -137,15 +141,15 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'users:logout' %}" title="{% trans "Log out" %}">
|
<a href="{% url 'users:logout' %}" title="{% trans "Log out" %}">
|
||||||
<span class="glyphicon-off glyphicon nav-icon"></span>
|
<span class="glyphicon glyphicon-off nav-icon"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'users:login' %}" title="{% trans "Log in" %}">
|
<a href="{% url 'users:login' %}" title="{% trans "Log in" %}">
|
||||||
<i class="glyphicon glyphicon-user nav-icon"></i>
|
<i class="glyphicon glyphicon-user nav-icon"></i>
|
||||||
<span class="navbar-logo-text">{% trans "Log in" %}</span></a>
|
{% trans "Log in" %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@ -12,16 +12,11 @@ body {
|
|||||||
margin-top: -14px;
|
margin-top: -14px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
.navbar-brand > .glyphicon{
|
|
||||||
top:3px;
|
.navbar-brand {
|
||||||
}
|
margin-right: -30px;
|
||||||
.navbar-brand{
|
|
||||||
padding-right: 30px;
|
|
||||||
}
|
|
||||||
.navbar-logo-text{
|
|
||||||
font-size: small;
|
|
||||||
padding-left: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-tabs {
|
.nav-tabs {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user