comparison default/components/images.html @ 129:ca42dc037bbf

file (discover): new discovery page: the discovery page will show service, own devices and roster contact devices offering file sharing. An extra field allow to enter free jid. Added a small message in photo/discover.html has photo album discovery is not yes implemented. New block and images macros.
author Goffi <goffi@goffi.org>
date Sat, 24 Mar 2018 11:16:14 +0100
parents
children
comparison
equal deleted inserted replaced
128:4f27ce980ced 129:ca42dc037bbf
1 {% macro get_icon_client(ident) %}
2 {% if ident.client %}
3 {% if ident.client.pc %}
4 {{ icon('desktop', cls='file__icon') }}
5 {% elif ident.client.phone %}
6 {{ icon('mobile', cls='file__icon') }}
7 {% elif ident.client.web %}
8 {{ icon('globe', cls='file__icon') }}
9 {% elif ident.client.console %}
10 {{ icon('terminal', cls='file__icon') }}
11 {% else %}
12 {{ icon('desktop', cls='file__icon') }}
13 {% endif %}
14 {% endif %}
15 {% endmacro %}