Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/components/images.html Sat Mar 24 11:16:14 2018 +0100 @@ -0,0 +1,15 @@ +{% macro get_icon_client(ident) %} + {% if ident.client %} + {% if ident.client.pc %} + {{ icon('desktop', cls='file__icon') }} + {% elif ident.client.phone %} + {{ icon('mobile', cls='file__icon') }} + {% elif ident.client.web %} + {{ icon('globe', cls='file__icon') }} + {% elif ident.client.console %} + {{ icon('terminal', cls='file__icon') }} + {% else %} + {{ icon('desktop', cls='file__icon') }} + {% endif %} + {% endif %} +{% endmacro %}