mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-01 17:15:51 +00:00
Move/rename templates
This commit is contained in:
20
template/component-label-list.html.jinja
Normal file
20
template/component-label-list.html.jinja
Normal file
@@ -0,0 +1,20 @@
|
||||
{% if use_page is undefined %}{% set use_page = currentpage %}{% endif %}
|
||||
{% if use_page.labels %}
|
||||
<div class="labels-wrap">
|
||||
<ul class="list-inline">
|
||||
{% for label in use_page.labels %}
|
||||
{% set label_landing = pages|selectattr("landing_for", "defined_and_equalto", label)|first %}
|
||||
{% if label_landing %}
|
||||
<li class="list-inline-item">
|
||||
<a href="{% if "//" not in label_landing.html %}{{target.prefix}}{% endif %}{{label_landing.html}}" class="label label-{{slug(label)}}">{{label}}</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="list-inline-item">
|
||||
<span class="label label-{{slug(label)}}">{{label}}</span>
|
||||
<!-- TEMPLATE WARNING: no label landing found for "{{label}}" -->
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div><!--/.labels-wrap-->
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user