Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Improve the language configuration overview

Roland Geider557ba7030cf4
diff --git a/wger/config/templates/language/view.html b/wger/config/templates/language/view.html
index 1025e8857..43d2c181c 100644
--- a/wger/config/templates/language/view.html
+++ b/wger/config/templates/language/view.html
@@ -33,15 +33,18 @@ in A).{% endblocktrans %}</p>
<table>
<thead>
<tr>
- <th>{% trans "Item" %}</th>
<th>{% trans "Language full name" %}</th>
<th>{% trans "Show" %}</th>
</tr>
</thead>
<tbody>
{% for config in view_language.language_source.all %}
+ {% ifchanged config.get_item_display %}
+ <tr>
+ <td colspan="2" style="text-align:center; background-color:#eeeeec;">{{config.get_item_display}}</td>
+ </tr>
+ {% endifchanged %}
<tr>
- <td>{{config.get_item_display}}</td>
<td>
<a href="{% url 'config:languageconfig-edit' config.id %}" class="modal-dialog">
{{config.language_target.full_name}}
@@ -62,7 +65,7 @@ in A).{% endblocktrans %}</p>
</tbody>
</table>
-
+
{% endblock %}