diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 225: Rename lava.extensions to lava.extension_list

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

Commit Message

Zygmunt Krynicki Aug. 19, 2011, 4:21 a.m. UTC
------------------------------------------------------------
revno: 225
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: pristine
timestamp: Thu 2011-08-18 17:00:07 +0200
message:
  Rename lava.extensions to lava.extension_list
modified:
  lava_server/context_processors.py
  lava_server/templates/layouts/content.html
  lava_server/templates/version_details.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/context_processors.py'
--- lava_server/context_processors.py	2011-05-24 16:18:45 +0000
+++ lava_server/context_processors.py	2011-08-18 15:00:07 +0000
@@ -24,7 +24,7 @@ 
 def lava(request):
     return {
         'lava': {
-            'extensions': loader.extensions,
+            'extension_list': loader.extensions,
             'version': versiontools.format_version(__version__)
         }
     }

=== modified file 'lava_server/templates/layouts/content.html'
--- lava_server/templates/layouts/content.html	2011-08-13 00:26:55 +0000
+++ lava_server/templates/layouts/content.html	2011-08-18 15:00:07 +0000
@@ -39,7 +39,7 @@ 
     <div id="lava-server-navigation"> 
       <ul>
         <li><a href="{% url lava.home %}">{% trans "LAVA Server" %}</a></li>
-        {% for extension in lava.extensions %}
+        {% for extension in lava.extension_list %}
         <li><a href="{{ extension.get_main_url }}">{{ extension.name }}</a></li>
         {% endfor %}
         <li><a href="{% url lava.api_help %}">{% trans "API" %}</a></li>

=== modified file 'lava_server/templates/version_details.html'
--- lava_server/templates/version_details.html	2011-07-08 02:56:22 +0000
+++ lava_server/templates/version_details.html	2011-08-18 15:00:07 +0000
@@ -11,15 +11,13 @@ 
 <h2>LAVA Server</h2>
 <p>You are using LAVA Server version {{ lava.version }}</p>
 <h2>Extensions</h2>
-{% with lava.extensions as extension_list %}
-{% if extension_list %}
+{% if lava.extension_list %}
 <ul>
-  {% for extension in extension_list %}
+  {% for extension in lava.extension_list %}
   <li>Extension <q>{{ extension.name }}</q> version {{ extension.version }}</li>
   {% endfor %}
 </ul>
 {% else %}
 <p>No server extension have been installed yet</p>
 {% endif %}
-{% endwith %}
 {% endblock %}