comparison sat_templates/templates/default/file/discover.html @ 220:f7d6ae06c42f

python 3 port: replaced iteritems() by items() for dictionaries
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 08:56:22 +0200
parents e9f0a4215e46
children aa37750c2617
comparison
equal deleted inserted replaced
219:de4ec87c06d9 220:f7d6ae06c42f
14 <div class="disco_files"> 14 <div class="disco_files">
15 {% if disco_service_entities %} 15 {% if disco_service_entities %}
16 <div class="files__services"> 16 <div class="files__services">
17 {{ block.separator(_("services")) }} 17 {{ block.separator(_("services")) }}
18 <ul class="grid grid--center"> 18 <ul class="grid grid--center">
19 {% for entity,ident in disco_service_entities.iteritems() %} 19 {% for entity,ident in disco_service_entities.items() %}
20 <li class='grid__item grid__item--medium grid__item--selectable'> 20 <li class='grid__item grid__item--medium grid__item--selectable'>
21 <a href="{{entities_url[entity]}}"> 21 <a href="{{entities_url[entity]}}">
22 {{ icon('server', cls='file__icon') }} 22 {{ icon('server', cls='file__icon') }}
23 <span> 23 <span>
24 {% if disco_service_entities|count == 1 %} 24 {% if disco_service_entities|count == 1 %}
35 {% endif %} 35 {% endif %}
36 {% if disco_own_entities %} 36 {% if disco_own_entities %}
37 <div class="files__own"> 37 <div class="files__own">
38 {{ block.separator(_("your devices")) }} 38 {{ block.separator(_("your devices")) }}
39 <ul class="grid grid--center"> 39 <ul class="grid grid--center">
40 {% for entity,ident in disco_own_entities.iteritems() %} 40 {% for entity,ident in disco_own_entities.items() %}
41 <li class='grid__item grid__item--medium grid__item--selectable'> 41 <li class='grid__item grid__item--medium grid__item--selectable'>
42 <a href="{{entities_url[entity]}}"> 42 <a href="{{entities_url[entity]}}">
43 {{images.get_icon_client(ident)}} 43 {{images.get_icon_client(ident)}}
44 <span>{{ ident.values()[0].values()[0][0] }}</span> 44 <span>{{ ident.values()[0].values()[0][0] }}</span>
45 </a> 45 </a>
50 {% endif %} 50 {% endif %}
51 {% if disco_roster_entities %} 51 {% if disco_roster_entities %}
52 <div class="files__roster"> 52 <div class="files__roster">
53 {{ block.separator(_("your contacts devices")) }} 53 {{ block.separator(_("your contacts devices")) }}
54 <ul class="grid grid--center"> 54 <ul class="grid grid--center">
55 {% for entity,ident in disco_roster_entities.iteritems() %} 55 {% for entity,ident in disco_roster_entities.items() %}
56 <li class='grid__item grid__item--medium grid__item--selectable'> 56 <li class='grid__item grid__item--medium grid__item--selectable'>
57 <a href="{{entities_url[entity]}}"> 57 <a href="{{entities_url[entity]}}">
58 {{images.get_icon_client(ident)}} 58 {{images.get_icon_client(ident)}}
59 <span>{{entity.userhost()}}</span> 59 <span>{{entity.userhost()}}</span>
60 </a> 60 </a>