Commits

salvator committed 27875d1

popover for site link

  • Participants
  • Parent commits ad3c086
  • Branches default

Comments (0)

Files changed (3)

admintools_bootstrap/static/admintools_bootstrap/js/init-ui.js

 $(function(){
 	$('select').chosen();
 	$('.vDateField').datepicker({dateFormat: 'yy-mm-dd'});
+	$("a[rel=popover].top-icon").twipsy({offset: 20});
 });
+

admintools_bootstrap/templates/admin/base.html

     $('#' + name + '_chzn').remove();
     $(elem).chosen();
   }
+
 });
 </script>
 </head>
         {% block search %}{% endblock %}
         {% if user.is_active and user.is_staff %}
         <ul class="nav secondary-nav">
-            <li><a href="/"  class="top-icon" title="{% trans "Open site" %}"><span class="ui-icon ui-icon-home ui-state-default"></span></a></li>
+            <li><a href="/"  class="top-icon" title="{% trans "Open site" %}" rel="popover" data-placement="below"><span class="ui-icon ui-icon-home ui-state-default"></span></a></li>
             <li class="dropdown">
               <a class="dropdown-toggle" href="#">
                 <span class="ui-icon ui-icon-person ui-state-default"></span>

admintools_bootstrap/templates/admin/base_site.html

 <script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/jquery-ui-1.8.16.custom.min.js"></script>
 <script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/bootstrap-dropdown.js"></script>
 <script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/bootstrap-alerts.js"></script>
+<script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/bootstrap-twipsy.js"></script>
 <script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/init-ui.js"></script>
 {% endblock %}