diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 262: do not show an entry in the nav bar for an extension that has None for a name

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

Commit Message

Michael-Doyle Hudson Oct. 12, 2011, 8:42 p.m. UTC
Merge authors:
  Michael Hudson-Doyle (mwhudson)
Related merge proposals:
  https://code.launchpad.net/~mwhudson/lava-server/no-nav-for-extension.name-None/+merge/79046
  proposed by: Michael Hudson-Doyle (mwhudson)
  review: Approve - Zygmunt Krynicki (zkrynicki)
------------------------------------------------------------
revno: 262 [merge]
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Thu 2011-10-13 09:40:13 +1300
message:
  do not show an entry in the nav bar for an extension that has None for a name
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-10-03 12:35:01 +0000
+++ lava_server/templates/layouts/content.html	2011-10-11 23:07:15 +0000
@@ -40,7 +40,9 @@ 
       <ul>
         <li><a href="{% url lava.home %}">{% trans "LAVA Server" %}</a></li>
         {% for extension in lava.extension_list %}
+        {% if extension.name %}
         <li><a href="{{ extension.get_main_url }}">{{ extension.name }}</a></li>
+        {% endif %}
         {% endfor %}
         <li><a href="{% url lava.api_help %}">{% trans "API" %}</a></li>
       </ul>