-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrisk-tree.html
52 lines (52 loc) · 2.54 KB
/
risk-tree.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<ol
class="risk-tree pat-navigation">
{% for module in site.tools %}
{% if module.layout contains 'module' or module.layout contains 'profile-question' %}
{% unless module.url contains '-state-' %}
{% unless module.parent_id %}
<li>
<a
class="
{% if module.layout contains 'module' %}
module
{% else %}
profile-question
{% endif %}
pat-inject"
data-pat-inject="history: record"
href="{{ module.url }}#document-body-{{ layout.application }}">
<span
class="title">
{{ module.title }}
</span>
</a>
<ol>
{% for sub in site.tools %}
{% if sub.parent_id == module.fid %}
{% unless sub.url contains '-state-' %}
<li>
{% if sub.layout contains 'module' %}
{% assign this_type = 'module' %}
{% else %}
{% assign this_type = 'risk' %}
{% endif %}
<a
class="{{ this_type }} pat-inject"
data-pat-inject="history: record"
href="{{ sub.url }}#document-body-{{ layout.application }}">
<span
class="title">
{{ sub.title }}
</span>
</a>
</li>
{% endunless %}
{% endif %}
{% endfor %}
</ol>
</li>
{% endunless %}
{% endunless %}
{% endif %}
{% endfor %}
</ol>