/
commands.html
94 lines (94 loc) · 3.39 KB
/
commands.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{% extends "layout.html" %}
{% set active_page = 'commands' %}
{% block title %}Commands{% endblock %}
{% block body %}
<h2>Commands</h2>
<div id="commands">
<div class="ui top attached tabular menu collapsing collapsed">
<a class="item custom active" data-tab="custom">Regular Commands</a>
{% if point_commands|length > 0 %}
<a class="item point" data-tab="point">Point Commands</a>
{% endif %}
{% if moderator_commands|length > 0 %}
<a class="item moderator" data-tab="moderator">Moderator Commands</a>
{% endif %}
</div>
<div class="ui bottom attached tab segment active collapsed" data-tab="custom">
<div class="ui equal width grid">
<div class="column four wide">
{% set base_key = 'c1' %}
<div class="commandlist-container {{ base_key }}">
<table class="ui table collapsed collapsing commandlist {{ base_key }}" data-key="{{ base_key }}">
<thead>
<tr>
<th>Command trigger</th>
</tr>
</thead>
<tbody>
{% for command in custom_commands %}
<tr>
<td class="collapsing selectable" style="font-family: monospace;">{% include 'helper/command_usage.html' %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% include 'helper/commands_page.html' %}
</div>
</div>
<div class="ui bottom attached tab segment" data-tab="point">
<div class="ui equal width grid">
<div class="column four wide">
{% set base_key = 'c2' %}
<div class="commandlist-container {{ base_key }}">
<table class="ui table collapsed collapsing commandlist {{ base_key }}" data-key="{{ base_key }}">
<thead>
<tr>
<th>Command trigger</th>
</tr>
</thead>
<tbody>
{% for command in point_commands %}
<tr>
<td class="collapsing selectable" style="font-family: monospace;">{% include 'helper/command_usage.html' %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% include 'helper/commands_page.html' %}
</div>
</div>
<div class="ui bottom attached tab segment" data-tab="moderator">
<div class="ui equal width grid">
<div class="column four wide">
{% set base_key = 'c3' %}
<div class="commandlist-container {{ base_key }}">
<table class="ui table collapsed collapsing commandlist {{ base_key }}" data-key="{{ base_key }}">
<thead>
<tr>
<th>Command trigger</th>
</tr>
</thead>
<tbody>
{% for command in moderator_commands %}
<tr>
<td class="collapsing selectable" style="font-family: monospace;">{% include 'helper/command_usage.html' %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% include 'helper/commands_page.html' %}
</div>
</div>
</div>
{% endblock %}
{% block footer %}
{% assets 'commands_js' %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% endblock %}