annotate sat_templates/templates/bulma/components/images.html @ 289:f1a39607d6a5
bulma (base/base.html): `full_screen_body` parameter + body_wrapper:
- if `full_screen_body` is set in template, the `body--fullscreen` class will be added to
`<body>` element. It will then be a flexbox container (in columns), and displayed on the whole viewport.
- new `body_wrapper` block, if a page needs to replace the `#body` container.
author |
Goffi <goffi@goffi.org> |
date |
Mon, 28 Sep 2020 17:25:26 +0200 |
parents |
0e69b5843c2f |
children |
|
rev |
line source |
230
|
1 {% macro get_icon_client(ident, class='is-64x64') %} |
|
2 {% if ident.client %} |
|
3 {% if ident.client.pc %} |
|
4 {{ icon('desktop', cls='image is-inline-block {}'.format(class)) }} |
|
5 {% elif ident.client.phone %} |
|
6 {{ icon('mobile', cls='image is-inline-block {}'.format(class)) }} |
|
7 {% elif ident.client.web %} |
|
8 {{ icon('globe', cls='image is-inline-block {}'.format(class)) }} |
|
9 {% elif ident.client.console %} |
|
10 {{ icon('terminal', cls='image is-inline-block {}'.format(class)) }} |
|
11 {% else %} |
|
12 {{ icon('desktop', cls='image is-inline-block {}'.format(class)) }} |
|
13 {% endif %} |
|
14 {% endif %} |
|
15 {% endmacro %} |