added breadcrumb navigation to docs

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40521
This commit is contained in:
Ismael Carnales 2008-12-16 16:57:52 +00:00
parent ed93eec374
commit 7414e93102
2 changed files with 11 additions and 10 deletions

View File

@ -39,6 +39,10 @@ ul#navigation li.last { border-right:none; }
ul#navigation li a { text-decoration:none; border-bottom:1px solid #ffca9b; color:#e57919;}
ul#navigation li a:hover { color:#c35012; border-bottom:1px solid #ef994c}
.breadcrumb a {
border-bottom: none;
}
.box { margin-bottom:15px; background:url('../images/box-borders-bottom.gif') no-repeat left bottom #4d271c; padding-bottom:5px; }
.box.download {background-color:#5b1111; }
.box.download p { color:#d18c59; }

View File

@ -3,6 +3,13 @@
{% block title %}{{ doc.title|safe }}{% endblock %}
{% block main-content %}
{% if doc.parents %}
<div class="breadcrumb">
{% for p in doc.parents %}
<a href="{{ p.link }}">{{ p.title|safe }}</a> &raquo;
{% endfor %}
</div>
{% endif %}
{{ doc.body|safe }}
{% endblock %}
@ -13,16 +20,6 @@
{{ doc.toc|safe }}
{% endif %}
{% if doc.parents %}
{% for p in doc.parents %}
<ul><li><a href="{{ p.link }}">{{ p.title|safe }}</a>
{% endfor %}
<ul><li>{{ doc.title|safe }}</li></ul>
{% for p in doc.parents %}</li></ul>{% endfor %}
</li>
</ul>
{% endif %}
<h3>Browse</h3>
<ul>
{% if doc.prev %}