mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 20:01:01 -05:00
Remove commas from list of placeholders
Visually, the space between them is enough. Also the oxford comma thing didn’t actuall work :|
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
|
||||
|
||||
{% macro list_of_placeholders(placeholders, oxford_comma=False) %}
|
||||
{% macro list_of_placeholders(placeholders) %}
|
||||
{% for placeholder in placeholders %}
|
||||
{% if loop.last and loop.length > 1 %}{% if oxford_comma %},{% endif %} and {% endif %}
|
||||
<span class="placeholder">(({{ placeholder }}))</span>{% if not loop.last and loop.length != 2 %},{% endif %}
|
||||
{% if loop.last and loop.length > 1 %} and {% endif %}
|
||||
<span class="placeholder">(({{ placeholder }}))</span>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user