Commit d193f19a authored by Michal Čihař's avatar Michal Čihař

Move variable definition

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f4ca9e43
......@@ -127,7 +127,7 @@
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Other components" %}</h4></div>
<div class="panel-body">
{% with other_translations as translations and True as show_only_component %}
{% with other_translations as translations %}
{% include "list-translations.html" %}
{% endwith %}
</div>
......
......@@ -328,6 +328,7 @@ def show_translation(request, project, subproject, lang):
'rss-translation',
kwargs=obj.get_kwargs(),
),
'show_only_component': True,
'other_translations': Translation.objects.filter(
subproject__project=obj.subproject.project,
language=obj.language,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment