diff sat_templates/templates/default/file/discover.html @ 231:aa37750c2617

theme (default): various fixes: - added missing </tr> in event/admin.html - fixed used of identities - uses `class` from kwargs in input/field.html
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 00:04:47 +0200
parents f7d6ae06c42f
children
line wrap: on
line diff
--- a/sat_templates/templates/default/file/discover.html	Tue May 19 00:02:34 2020 +0200
+++ b/sat_templates/templates/default/file/discover.html	Tue May 19 00:04:47 2020 +0200
@@ -24,7 +24,7 @@
                                 {% if disco_service_entities|count == 1 %}
                                     {% trans %}your server{% endtrans %}
                                 {% else %}
-                                    {{ ident.values()[0].values()[0][0] }}
+                                    {{ (ident.values()|first).values()|first|first }}
                                 {% endif %}
                             </span>
                         </a>
@@ -41,7 +41,9 @@
                     <li class='grid__item grid__item--medium grid__item--selectable'>
                         <a href="{{entities_url[entity]}}">
                             {{images.get_icon_client(ident)}}
-                            <span>{{ ident.values()[0].values()[0][0] }}</span>
+                            <span>
+                                {{ (ident.values()|first).values()|first|first }}
+                            </span>
                         </a>
                     </li>
                 {% endfor %}