Commits

salvator committed 97bfa1b

link to site from admin; icons for site link and profile-related menu

Comments (0)

Files changed (2)

admintools_bootstrap/static/admintools_bootstrap/lib/style.less

 @import "bootstrap.less";
 
+@redbor: 1px solid red;
+
 .page-top .pull-right {
 	margin-top: -33px;
 }
 	}
 }
 
+.secondary-nav {
+	li a{
+		padding-left: 2px !important;
+	}
+	.ui-icon {
+		float: left;
+		margin: 0 5px 0 0;
+	}
+}

admintools_bootstrap/templates/admin/base.html

         {% block search %}{% endblock %}
         {% if user.is_active and user.is_staff %}
         <ul class="nav secondary-nav">
+            <li><a href="/"  title="{% trans "Open site" %}"><span class="ui-icon ui-icon-home ui-state-default"></span></a></li>
             <li class="dropdown">
-              <a class="dropdown-toggle" href="#">{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</a>
+              <a class="dropdown-toggle" href="#">
+                <span class="ui-icon ui-icon-person ui-state-default"></span>
+                {% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}
+              </a>
               <ul class="dropdown-menu">
               {% block userlinks %}
                   {% url django-admindocs-docroot as docsroot %}