blob: ce73ca71035ef3190db5f69e2544a1d6c11cb18d (
plain) (
blame)
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
53
54
55
56
57
58
59
60
61
62
|
{% macro window(title, close=false) %}
<div class="window">
<div class="title-bar">
<div class="title-bar-text">{{title | safe}}</div>
<div class="title-bar-controls">
{% if close %}
<a href="{{ close }}"><button aria-label="Close"></button></a>
{% endif %}
</div>
</div>
<div class="window-body">
{% endmacro window %}
{% macro endwindow() %}
</div>
</div>
{% endmacro endwindow %}
{% macro soaosed(text) %}
<span class="flip" data-title="{{ text }}"
><span class="hidden-selectable">{{ text }}</span></span
>
{% endmacro soaosed %}
{% macro treeview(height="auto") %}
<div class="sunken-panel">
<ul class="tree-view" style="height: {{height}}; overflow-y: scroll">
{% endmacro treeview %}
{% macro endtreeview() %}
</ul>
</div>
{% endmacro endtreeview %}
{% macro subtree(name, url="", open=false, blank=false) %}
<li>
<details {% if open %}open{% endif %}>
<summary>
{% if url %}<a href="{{ url }}" {% if blank %}target="_blank"{% endif %}>{% else %}<b>{% endif %}
{{ name | safe }}
{% if url %}</a>{% else %}</b>{% endif %}
</summary>
<ul>
{% endmacro subtree %}
{% macro endsubtree() %}
</ul>
</details>
</li>
{% endmacro endsubtree %}
{% macro treelink(text, url, blank=false, wip=false, wip_tooltip="") %}
<li>
<a href="{{ url }}" {% if blank %} target="_blank" {% endif %} {% if rel %} rel="{{ rel }}" {% endif %}>{{ text }}</a>
{% if wip %}
<span {% if wip_tooltip %}data-tooltip="{{ wip_tooltip }}" {% endif %}>
<span class="under-construction unselectable">⚠</span>
</span>
{% endif %}
</li>
{% endmacro treelink %}
|