annotate sat_templates/templates/bulma/call/group_peer.html @ 399:e7152fc8a81f

bulma (components/search_item): explicitely import "avatar".
author Goffi <goffi@goffi.org>
date Thu, 06 Jun 2024 15:22:22 +0200
parents 9847e6dbeefa
children 140690a18b63
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
396
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
1 <div class="column peer_video_container is-flex-grow-1">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
2 <div class="box group-peer-avatar is-hidden">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
3 <div class="card">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
4 <div class="card-content">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
5 <figure class="image is-128x128 is-rounded" style="margin: auto;">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {%- if identities is defined -%}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
7 {% set identity = identities.get(entity) %}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
8 {% set nick = identity.nicknames[0] if identity.nicknames else jid %}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {%- if identity.avatar.filename %}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <img class="is-rounded" src="/cache/common/{{identity.avatar.filename}}" alt="{{ nick }}" style="height: 100%; width: 100%;">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {% else %}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
12 <span class="is-avatar is-128x128 image has-background-light is-flex has-items-centered has-text-weight-bold is-size-1">{{nick|first|upper}}</span>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
13 {%- endif -%}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
14 {%- endif -%}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
15 </figure>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
16 </div>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
17 <div class="card-content has-text-centered">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
18 {%- if identities is defined -%}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
19 <div class="tag is-rounded is-info has-text-weight-semibold" style="display: inline-block;">
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
20 {{ nick }}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
21 </div>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
22 {%- endif -%}
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
23 </div>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
24 </div>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
25 </div>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
26 <video class="peer_video_stream" autoplay playsinline tabindex="0" style="width: 100%; height: auto; object-fit: cover;"></video>
9847e6dbeefa bulma (call): add group call related templates.
Goffi <goffi@goffi.org>
parents:
diff changeset
27 </div>