Mercurial > libervia-templates
annotate sat_templates/templates/default/file/discover.html @ 411:f7a434581872 default tip
chat: Add forward, rich editing and extra recipients:
- There is a new "forward" menu in message. For now, a simple prompt ask for recipient JID.
- A new "extra" menu is available next to input field. Inside there are 2 items for now:
add extra recipient, and toggle rich edit mode.
- Extra recipient option add a field to add an email-like "to", "cc" or "bcc" recipients.
- Rich edit let use rich styling such as bold, italic, underline, etc.
rel 461
| author | Goffi <goffi@goffi.org> |
|---|---|
| date | Fri, 04 Jul 2025 17:33:22 +0200 |
| parents | aa37750c2617 |
| children |
| 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"> | |
|
220
f7d6ae06c42f
python 3 port: replaced iteritems() by items() for dictionaries
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
19 {% for entity,ident in disco_service_entities.items() %} |
| 129 | 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 %} | |
| 231 | 27 {{ (ident.values()|first).values()|first|first }} |
| 129 | 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"> | |
|
220
f7d6ae06c42f
python 3 port: replaced iteritems() by items() for dictionaries
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
40 {% for entity,ident in disco_own_entities.items() %} |
| 129 | 41 <li class='grid__item grid__item--medium grid__item--selectable'> |
| 42 <a href="{{entities_url[entity]}}"> | |
| 43 {{images.get_icon_client(ident)}} | |
| 231 | 44 <span> |
| 45 {{ (ident.values()|first).values()|first|first }} | |
| 46 </span> | |
| 129 | 47 </a> |
| 48 </li> | |
| 49 {% endfor %} | |
| 50 </ul> | |
| 51 </div> | |
| 52 {% endif %} | |
| 53 {% if disco_roster_entities %} | |
| 54 <div class="files__roster"> | |
| 55 {{ block.separator(_("your contacts devices")) }} | |
| 56 <ul class="grid grid--center"> | |
|
220
f7d6ae06c42f
python 3 port: replaced iteritems() by items() for dictionaries
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
57 {% for entity,ident in disco_roster_entities.items() %} |
| 129 | 58 <li class='grid__item grid__item--medium grid__item--selectable'> |
| 59 <a href="{{entities_url[entity]}}"> | |
| 60 {{images.get_icon_client(ident)}} | |
| 61 <span>{{entity.userhost()}}</span> | |
| 62 </a> | |
| 63 </li> | |
| 64 {% endfor %} | |
| 65 </ul> | |
| 66 </div> | |
| 67 {% endif %} | |
| 68 </div> | |
| 69 | |
| 70 <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
|
71 {% call form.form(class="form--single") %} |
| 129 | 72 {{ field.text("jid", _("device full jid"), required=true)}} |
| 73 {{ field.submit(_("Access")) }} | |
| 74 {% endcall %} | |
| 75 {% endblock body %} |
