mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
render_box, altnames style
(keep id-number for accompanying context)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{#
|
||||
Template to render a person
|
||||
* render string ['raw'|'label'|'bloc']
|
||||
OPTIONS
|
||||
* render string ['raw'|'label'|'bloc']
|
||||
* addAltNames bool
|
||||
* addLink bool
|
||||
* addEntity bool
|
||||
@@ -19,13 +19,13 @@
|
||||
<span class="firstname">{{ person.firstName }}</span>
|
||||
<span class="lastname">{{ person.lastName }}</span>
|
||||
{%- if options['addAltNames'] -%}
|
||||
<span class="altnames">
|
||||
{%- for n in person.altNames -%}
|
||||
{%- if loop.first -%}({% else %} {%- endif -%}
|
||||
<span class="altname altname-{{ n.key }}">
|
||||
{{- n.label -}}
|
||||
</span>
|
||||
{%- if loop.last -%}){%- endif -%}
|
||||
<span class="altname altname-{{ n.key }}">
|
||||
{{- n.label -}}
|
||||
</span>
|
||||
{%- endfor -%}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
{% endmacro raw %}
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
<span class="badge rounded-pill bg-secondary">{{ 'Person'|trans }}</span>
|
||||
{%- endif -%}
|
||||
{%- if options['addId'] -%}
|
||||
<span class="id-number" title="{{ 'Person'|trans ~ ' ' ~ person.id }}">
|
||||
{{ person.id|upper }}
|
||||
<span class="id-number" title="{{ 'Person'|trans ~ ' n° ' ~ person.id }}">
|
||||
{{ person.id|upper }}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user