diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 247: Use lava-server breadcrumbs by default in content template

Message ID 20111003164816.1881.82821.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Oct. 3, 2011, 4:48 p.m. UTC
------------------------------------------------------------
revno: 247
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: trunk
timestamp: Mon 2011-10-03 14:35:01 +0200
message:
  Use lava-server breadcrumbs by default in content template
modified:
  lava_server/templates/layouts/content.html


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/templates/layouts/content.html'
--- lava_server/templates/layouts/content.html	2011-09-27 20:01:32 +0000
+++ lava_server/templates/layouts/content.html	2011-10-03 12:35:01 +0000
@@ -60,7 +60,13 @@ 
     <b>{% trans "You are here:" %}</b>
     <ul>
       <li><a href="{% url lava.home %}">{% trans "LAVA" %}</a></li>
-      {% block breadcrumbs %}{% endblock %}
+      {% block breadcrumbs %}
+      {% for bread_crumb in bread_crumb_trail %}
+      <li><a 
+        href="{{ bread_crumb.get_absolute_url }}"
+        >{{ bread_crumb.get_name }}</a></li>
+      {% endfor %}
+      {% endblock %}
     </ul>
   </div>
   <!-- !breadcrumbs -->