mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
UX: [badges] uniformize user badges in lists, shows and dashboards
This commit is contained in:
parent
dd621186e8
commit
f376b1af49
@ -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>
|
||||||
|
@ -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 %}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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 %}
|
||||||
|
@ -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">
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user