mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-27 23:25:51 +00:00
References restructuring. Fixes #1022
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
{% set flag_n = cycler(* range(1,99)) %}
|
||||
<section class="container-fluid card-grid card-grid-4xN">
|
||||
{% for page in currentpage.children %}
|
||||
{% for page in currentpage.children if not page.nav_omit %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><a href="{{page.html}}">{{page.name}}</a></h3>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% macro page_w_children(pg, n) %}
|
||||
{% if not (pg.nav_omit and pg != currentpage) %}
|
||||
{% if pg.is_ancestor_of(currentpage.html) %}
|
||||
{% set active_parent=True %}
|
||||
{% else %}
|
||||
@@ -11,11 +12,15 @@
|
||||
|
||||
<div class="nav-item {% if currentpage == pg %}active{% elif active_parent%}active-parent{% endif %}">
|
||||
{% if not pg.children %}
|
||||
<a class="nav-link nav-leaf" href="{% if "//" not in pg.html %}{{currentpage.prefix}}{% endif %}{{pg.html}}">{{ pg.name }}{% if pg.status is defined %} {% include 'template-status_'+pg.status+'.html' %}{% endif %}</a>
|
||||
{% if "//" in pg.html %}
|
||||
<a class="nav-link nav-leaf external-link" target="_blank" href="{% if "//" not in pg.html %}{{currentpage.prefix}}{% endif %}{{pg.html}}">{{ pg.name }}{% if pg.status is defined %} {% include 'template-status_'+pg.status+'.html' %}{% endif %} <i aria-hidden="true" class="fa fa-external-link"></i></a>
|
||||
{% else %}
|
||||
<a class="nav-link nav-leaf" href="{% if "//" not in pg.html %}{{currentpage.prefix}}{% endif %}{{pg.html}}">{{ pg.name }}{% if pg.status is defined %} {% include 'template-status_'+pg.status+'.html' %}{% endif %}</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
||||
<a class="nav-toggler {% if not active_parent and currentpage != pg %}collapsed{% endif %}" role="button" data-toggle="collapse" href="#tree_nav_group_{{n}}" aria-expanded="{% if active_parent or currentpage == pg %}true{% else %}false{% endif %}" aria-controls="tree_nav_group_{{n}}"></a>
|
||||
<a class="nav-link" href="{% if "//" not in pg.html %}{{currentpage.prefix}}{% endif %}{{pg.html}}">{{ pg.name }}{% if pg.status is defined %} {% include 'template-status_'~pg.status~'.html' %}{% endif %}</a>
|
||||
<a class="nav-link{% if "//" in pg.html %} external-link{% endif %}" href="{% if "//" not in pg.html %}{{currentpage.prefix}}{% endif %}{{pg.html}}">{{ pg.name }}{% if pg.status is defined %} {% include 'template-status_'~pg.status~'.html' %}{% endif %}</a>
|
||||
|
||||
<nav class="nav flex-column {% if active_parent or pg == currentpage %}show {% else %}collapse{% endif %}" id="tree_nav_group_{{n}}">
|
||||
{% for child in pg.children %}
|
||||
@@ -25,6 +30,7 @@
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
<nav class="nav flex-column dactyl-tree-nav">
|
||||
|
||||
Reference in New Issue
Block a user