From 384327af714fa7d7a3e0707c47d1681b65e752ed Mon Sep 17 00:00:00 2001 From: Soumya97 Date: Wed, 8 Mar 2017 12:56:11 +0530 Subject: [PATCH] Implement new topbar according to new card based UI --- plinth/templates/base.html | 28 +++++++++++++++++----------- static/themes/default/css/plinth.css | 11 ++++++++++- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/plinth/templates/base.html b/plinth/templates/base.html index 718482b00..96fb0fa9f 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -91,12 +91,21 @@ title="{{ box_name }}"> {{ box_name }} + {% if user.is_authenticated %} + {% trans "Home" %} + {% endif %} {% if user.is_authenticated %} + {% trans "Apps" %} + + + {% trans "Configuration" %} + {% endif %} {% endblock %} @@ -110,18 +119,14 @@ {% if user.is_authenticated %} -
  • - - - -
  • + +
  • + + + +
  • {% else %}
  • - {% trans "Log in" %} + {% trans "Log in" %}
  • {% endif %} diff --git a/static/themes/default/css/plinth.css b/static/themes/default/css/plinth.css index 1d7e5ae9c..cb5b684ed 100644 --- a/static/themes/default/css/plinth.css +++ b/static/themes/default/css/plinth.css @@ -12,7 +12,16 @@ body { margin-top: -14px; padding: 8px; } - +.navbar-brand > .glyphicon{ + top:3px; +} +.navbar-brand{ + padding-right: 30px; +} +.navbar-logo-text{ + font-size: small; + padding-left: 2px; +} .nav-tabs { margin-bottom: 20px; }