diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-12 21:57:20 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-12 21:57:20 +0200 |
commit | 38bf1d1ab57df154ba4de31b2c7e85a972a5289e (patch) | |
tree | 5e155a5721bff91639bc930eb4c46e1da6302376 /pyaggr3g470r/templates/layout.html | |
parent | Typo. (diff) | |
download | newspipe-38bf1d1ab57df154ba4de31b2c7e85a972a5289e.tar.gz newspipe-38bf1d1ab57df154ba4de31b2c7e85a972a5289e.tar.bz2 newspipe-38bf1d1ab57df154ba4de31b2c7e85a972a5289e.zip |
Fixed a bug when creating a new user via the dashboard. An other little improvement for the main menu.
Diffstat (limited to 'pyaggr3g470r/templates/layout.html')
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 94d3fdc6..e3d3be38 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -79,16 +79,21 @@ </ul> </li> <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ _('Tools') }} <b class="caret"></b></a> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> + <div><span class="glyphicon glyphicon-user"></span> <b class="caret"></b></div> + </a> <ul class="dropdown-menu"> - <li><a accesskey="m" href="{{ url_for("management") }}"><span class="glyphicon glyphicon-cog"></span> {{ _('Management') }}</a></li> + <li><a href="{{ url_for("profile") }}"><span class="glyphicon glyphicon-user"></span> {{ _('Profile') }}</a></li> + <li><a href="{{ url_for("management") }}"><span class="glyphicon glyphicon-cog"></span> {{ _('Your data') }}</a></li> {% if g.user.is_admin() %} + <li role="presentation" class="divider"></li> <li><a href="{{ url_for("dashboard") }}"><span class="glyphicon glyphicon-dashboard"></span> {{ _('Dashboard') }}</a></li> + <li role="presentation" class="divider"></li> {% endif %} - <li><a href="{{ url_for("about") }}"><span class="glyphicon glyphicon-question-sign"></span> {{ _('About') }}</a></li> + <li><a href="{{ url_for("logout") }}"><span class="glyphicon glyphicon-log-out"></span> {{ _('Logout') }}</a></li> </ul> </li> - <li><a href="{{ url_for("logout") }}"><span class="glyphicon glyphicon-log-out"></span> {{ _('Logout') }}</a></li> + {% if not on_heroku %} <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> |