=== modified file 'lava_server/context_processors.py'
@@ -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'
@@ -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'
@@ -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 %}