Mercurial > libervia-templates
annotate sat_templates/templates/default/file/discover.html @ 208:89f940763b02
css (ticket): no need to hide "author" anymore, it's ignored again in Libervia following updating fix.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Jun 2019 12:43:47 +0200 |
parents | e9f0a4215e46 |
children | f7d6ae06c42f |
rev | line source |
---|---|
129 | 1 {% extends 'base/base.html' %} |
2 {% import 'components/block.html' as block %} | |
3 {% import 'components/images.html' as images with context %} | |
4 {% import 'input/form.html' as form with context %} | |
5 {% import 'input/field.html' as field with context %} | |
6 | |
7 {% block body %} | |
8 {{ icon_defs('server', 'desktop', 'mobile', 'globe', 'terminal') }} | |
9 <p class="instructions--head"> | |
10 {% trans %} | |
11 Please select the device you want to access | |
12 {% endtrans %} | |
13 </p> | |
131 | 14 <div class="disco_files"> |
129 | 15 {% if disco_service_entities %} |
16 <div class="files__services"> | |
17 {{ block.separator(_("services")) }} | |
18 <ul class="grid grid--center"> | |
19 {% for entity,ident in disco_service_entities.iteritems() %} | |
20 <li class='grid__item grid__item--medium grid__item--selectable'> | |
21 <a href="{{entities_url[entity]}}"> | |
22 {{ icon('server', cls='file__icon') }} | |
23 <span> | |
24 {% if disco_service_entities|count == 1 %} | |
25 {% trans %}your server{% endtrans %} | |
26 {% else %} | |
27 {{ ident.values()[0].values()[0][0] }} | |
28 {% endif %} | |
29 </span> | |
30 </a> | |
31 </li> | |
32 {% endfor %} | |
33 </ul> | |
34 </div> | |
35 {% endif %} | |
36 {% if disco_own_entities %} | |
37 <div class="files__own"> | |
38 {{ block.separator(_("your devices")) }} | |
39 <ul class="grid grid--center"> | |
40 {% for entity,ident in disco_own_entities.iteritems() %} | |
41 <li class='grid__item grid__item--medium grid__item--selectable'> | |
42 <a href="{{entities_url[entity]}}"> | |
43 {{images.get_icon_client(ident)}} | |
44 <span>{{ ident.values()[0].values()[0][0] }}</span> | |
45 </a> | |
46 </li> | |
47 {% endfor %} | |
48 </ul> | |
49 </div> | |
50 {% endif %} | |
51 {% if disco_roster_entities %} | |
52 <div class="files__roster"> | |
53 {{ block.separator(_("your contacts devices")) }} | |
54 <ul class="grid grid--center"> | |
55 {% for entity,ident in disco_roster_entities.iteritems() %} | |
56 <li class='grid__item grid__item--medium grid__item--selectable'> | |
57 <a href="{{entities_url[entity]}}"> | |
58 {{images.get_icon_client(ident)}} | |
59 <span>{{entity.userhost()}}</span> | |
60 </a> | |
61 </li> | |
62 {% endfor %} | |
63 </ul> | |
64 </div> | |
65 {% endif %} | |
66 </div> | |
67 | |
68 <p class="instructions--alt">{% trans %}Or enter a full jid of a device{% endtrans %}</p> | |
155
954759f0e8fa
css: styles improvments + following a bit more BEM conventions
Goffi <goffi@goffi.org>
parents:
147
diff
changeset
|
69 {% call form.form(class="form--single") %} |
129 | 70 {{ field.text("jid", _("device full jid"), required=true)}} |
71 {{ field.submit(_("Access")) }} | |
72 {% endcall %} | |
73 {% endblock body %} |