pages: header site link; tree item glyphicons for subtrees
authorTero Marttila <terom@paivola.fi>
Sun, 14 Sep 2014 03:18:19 +0300
changeset 207 262885b25dfa
parent 206 440e6769976c
child 208 1407c79961ef
pages: header site link; tree item glyphicons for subtrees
qmsk_www/templates/site.html
qmsk_www_pages/static/pages/pages.css
qmsk_www_pages/templates/pages/page.html
--- a/qmsk_www/templates/site.html	Sun Sep 14 03:03:30 2014 +0300
+++ b/qmsk_www/templates/site.html	Sun Sep 14 03:18:19 2014 +0300
@@ -11,6 +11,7 @@
 
         <!-- qmsk.www.pages -->
         <link rel="stylesheet" href="{% static "style.css" %}">
+        <link rel="stylesheet" href="{% static "pages/pages.css" %}">
     </head>
     <body>
         {% block content %}{% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qmsk_www_pages/static/pages/pages.css	Sun Sep 14 03:18:19 2014 +0300
@@ -0,0 +1,3 @@
+li.page-tree-item i.glyphicon {
+    float: right;
+}
--- a/qmsk_www_pages/templates/pages/page.html	Sun Sep 14 03:03:30 2014 +0300
+++ b/qmsk_www_pages/templates/pages/page.html	Sun Sep 14 03:18:19 2014 +0300
@@ -6,7 +6,7 @@
     <div class="container">
         <div id="header">
             <h1 class="page-header-title">
-                {{ site_name }}
+                <a href="{% url 'page' '' %}">{{ site_name }}</a>
             </h1>
         </div>
         <div id="breadcrumb">
@@ -25,7 +25,12 @@
                 <ul class="nav">
                     {% for page, name, type in tree.list %}
                     <li class="page-tree-item{% if type %} page-tree-{{type}}{% else %} page-tree-tree{% endif %}{% if name == tree_name %} page-tree-active{% endif %}">
-                        <a href="{% url 'page' page %}">{{ name }}</a>
+                        <a href="{% url 'page' page %}">
+                            {% if not type %}
+                            <i class="glyphicon glyphicon-chevron-right"></i>
+                            {% endif %}
+                            {{ name }}
+                        </a>
                     </li>
                     {% endfor %}
                 </ul>