UX: [badges] uniformize user badges in lists, shows and dashboards

This commit is contained in:
Mathieu Jaumotte 2023-03-07 16:23:41 +01:00
parent dd621186e8
commit f376b1af49
6 changed files with 10 additions and 6 deletions

View File

@ -68,7 +68,7 @@
<div class="wl-col title"><h3>{{ 'Referrer'|trans }}</h3></div> <div class="wl-col title"><h3>{{ 'Referrer'|trans }}</h3></div>
<div class="wl-col list"> <div class="wl-col list">
<p class="wl-item"> <p class="wl-item">
{{ activity.user|chill_entity_render_box }} <span class="badge-user">{{ activity.user|chill_entity_render_box }}</span>
</p> </p>
</div> </div>
</div> </div>

View File

@ -41,7 +41,7 @@
{% if activity.user and t.userVisible %} {% if activity.user and t.userVisible %}
<li> <li>
<span class="item-key">{{ 'Referrer'|trans ~ ': ' }}</span> <span class="item-key">{{ 'Referrer'|trans ~ ': ' }}</span>
<b>{{ activity.user|chill_entity_render_box}}</b> <span class="badge-user">{{ activity.user|chill_entity_render_box }}</span>
</li> </li>
{% endif %} {% endif %}

View File

@ -35,7 +35,9 @@
<div class="item-row separator"> <div class="item-row separator">
<dl class="chill_view_data"> <dl class="chill_view_data">
<dt class="inline">{{ 'Referrer'|trans|capitalize }}</dt> <dt class="inline">{{ 'Referrer'|trans|capitalize }}</dt>
<dd>{{ entity.user|chill_entity_render_box }}</dd> <dd>
<span class="badge-user">{{ entity.user|chill_entity_render_box }}</span>
</dd>
{%- if entity.scope -%} {%- if entity.scope -%}
<dt class="inline">{{ 'Scope'|trans }}</dt> <dt class="inline">{{ 'Scope'|trans }}</dt>

View File

@ -84,7 +84,7 @@
{%- if w.referrers|length > 0 -%} {%- if w.referrers|length > 0 -%}
{% for u in w.referrers %} {% for u in w.referrers %}
<span class="wl-item"> <span class="wl-item">
{{ u|chill_entity_render_box }} <span class="badge-user">{{ u|chill_entity_render_box }}</span>
{% if not loop.last %}, {% endif %} {% if not loop.last %}, {% endif %}
</span> </span>
{% endfor %} {% endfor %}

View File

@ -33,8 +33,10 @@
<span class="item-key">{{ 'Referrers'|trans ~ ' : ' }}</span> <span class="item-key">{{ 'Referrers'|trans ~ ' : ' }}</span>
{% for u in w.referrers %} {% for u in w.referrers %}
<span class="badge-user">{{ u|chill_entity_render_box }}</span> <span class="badge-user">{{ u|chill_entity_render_box }}</span>
{% if not loop.last %}, {% endif %}
{% endfor %} {% endfor %}
{% if w.referrers|length == 0 %}
<span class="chill-no-data-statement">{{ 'Not given'|trans }}</span>
{% endif %}
</li> </li>
{% endif %} {% endif %}
<li class="associated-persons"> <li class="associated-persons">

View File

@ -69,7 +69,7 @@
</div> </div>
<div class="wl-col list"> <div class="wl-col list">
<div class="user"> <div class="user">
{{ acp.user|chill_entity_render_box }} <span class="badge-user">{{ acp.user|chill_entity_render_box }}</span>
</div> </div>
</div> </div>
</div> </div>