mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
removed item.ancestors
This commit is contained in:
@@ -38,18 +38,12 @@
|
|||||||
{% for item in template_list %}
|
{% for item in template_list %}
|
||||||
|
|
||||||
{% set item_link_content %}
|
{% set item_link_content %}
|
||||||
{% for ancestor in item.ancestors %}
|
|
||||||
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type=template_type, template_folder_id=ancestor.id) }}"
|
|
||||||
class="usa-link template-list-folder">
|
|
||||||
{{- format_item_name(ancestor.name) -}}
|
|
||||||
</a> <span class="message-name-separator"></span>
|
|
||||||
{% endfor %}
|
|
||||||
{% if item.is_folder %}
|
{% if item.is_folder %}
|
||||||
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type=template_type, template_folder_id=item.id) }}"
|
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type=template_type, template_folder_id=item.id) }}"
|
||||||
class="usa-link template-list-folder">
|
class="usa-link template-list-folder">
|
||||||
<span class="live-search-relevant">{{- format_item_name(item.name) -}}</span>
|
<span class="live-search-relevant">{{- format_item_name(item.name) -}}</span>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% elif not item.ancestors %}
|
||||||
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.id) }}"
|
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.id) }}"
|
||||||
class="usa-link template-list-template">
|
class="usa-link template-list-template">
|
||||||
<span class="live-search-relevant">
|
<span class="live-search-relevant">
|
||||||
@@ -70,9 +64,11 @@
|
|||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
{% set item_meta %}
|
{% set item_meta %}
|
||||||
|
{% if not item.ancestors %}
|
||||||
<span id="{{ item.id }}-item-hint" class="usa-hint usa-checkbox__label-description template-list-item-hint">
|
<span id="{{ item.id }}-item-hint" class="usa-hint usa-checkbox__label-description template-list-item-hint">
|
||||||
{{ item.hint }}
|
{{ item.hint }}
|
||||||
</span>
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
{# create the item config now to include the label content -#}
|
{# create the item config now to include the label content -#}
|
||||||
|
|||||||
Reference in New Issue
Block a user