mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 00:43:11 -04:00
Remove external link support in sub navigation
This navigation will only have internal links in it.
This commit is contained in:
@@ -3,22 +3,17 @@
|
|||||||
) %}
|
) %}
|
||||||
<nav class="sub-navigation">
|
<nav class="sub-navigation">
|
||||||
<ol itemscope itemtype="http://schema.org/ItemList">
|
<ol itemscope itemtype="http://schema.org/ItemList">
|
||||||
{% for item in item_set %}
|
{% for item in item_set %}
|
||||||
<li class="sub-navigation__item {% if item['link'] == request.endpoint %} sub-navigation__item--active {% endif %}"
|
<li class="sub-navigation__item {% if item['link'] == request.endpoint %} sub-navigation__item--active {% endif %}"
|
||||||
itemprop="itemListElement"
|
itemprop="itemListElement"
|
||||||
itemscope
|
itemscope
|
||||||
itemtype="http://schema.org/ListItem"
|
itemtype="http://schema.org/ListItem"
|
||||||
>
|
>
|
||||||
<a href="{%- if item['external_link'] -%}
|
<a href="{{ url_for(item['link']) }}" itemprop="item">
|
||||||
{{ item['link'] }}
|
|
||||||
{%- else -%}
|
|
||||||
{{ url_for(item['link']) }}
|
|
||||||
{%- endif -%}"
|
|
||||||
itemprop="item">
|
|
||||||
<span itemprop="name">{{item['name']}}</span>
|
<span itemprop="name">{{item['name']}}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user