Add pretty natural language, oxford commad, 'and's
This commit is contained in:
parent
a0d31318e4
commit
e6cbc3482f
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@
|
||||||
<p{{ attributes.removeClass('content') }}>
|
<p{{ attributes.removeClass('content') }}>
|
||||||
<label{{ title_attributes.removeClass('label') }}>{{ label }}</label>
|
<label{{ title_attributes.removeClass('label') }}>{{ label }}</label>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<strong>{{ item.content }}</strong>{% if not loop.last %}, {% endif %}
|
{% if loop.length > 1 and loop.index == loop.length %}and {% endif %}
|
||||||
|
<strong>{{ item.content }}</strong>{% if loop.length > 2 and not loop.last %}, {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue