]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - templates/base.html
Initial port to django-1.7
[sommitrealweird.git] / templates / base.html
index 06cc632f01d257ad54a047be52c48c752e1d7a50..cb3a71871019927c95377c59ceab87254462378b 100644 (file)
@@ -4,6 +4,7 @@
     <head>
         <title>{% block title %}{{ title }}{% endblock %}</title>
         <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/main.css" />
+        {% block extrahead %}{% endblock %}
     </head>
     <body>
         <div id="page">
                         {% for item in content_menu %}
                         <li><a href="{{ item.url }}">{{ item.title }}</a></li>
                         {% endfor %}
-                        <li>Photos</li>
-                        <li>Blog</li>
+                        <li><a href="/photo/">Photos</a></li>
+                        <li><a href="/blog/">Blog</a></li>
                     </ul>
                     {% endblock %}
                 </div>
             </div>
             <div id="content">
+                {% block breadcrumb %}
+                <div id="breadcrumb">
+                    <p>
+                    {% for item in content_breadcrumb %}
+                        {% if not forloop.last %}
+                        <a href="{{ item.url }}">{{ item.title }}</a> &gt;
+                        {%else %}
+                        {{ item.title }}
+                        {% endif %}
+                    {% endfor %}
+                    </p>
+                </div>
+                {% endblock %}
                 {% block submenu %}
-                <div id="submenu">
                     {% if content_submenu %}
-                    <ul>
-                        {% for item in content_submenu %}
-                        <li><a href="{{ item.url }}">{{ item.title }}</a></li>
-                        {% endfor %}
-                    </ul>
+                    <div id="submenu">
+                        <ul>
+                            {% for item in content_submenu %}
+                            <li><a href="{{ item.url }}">{{ item.title }}</a></li>
+                            {% endfor %}
+                        </ul>
+                    </div>
                     {% endif %}
-                </div>
                 {% endblock %}
                 {% block content %}
                 {{ content }}
                 {% endblock %}
             </div>
             <div id="footer">
-                <p>Copyright &copy; 2008 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
+                <p>Copyright &copy; 2008-2013 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
             </div>
         </div>
     </body>