Browse Source

added sections of magic words

main
ccl 4 years ago
parent
commit
9c5f481dbb
  1. 41
      templates/index.html

41
templates/index.html

@ -31,6 +31,7 @@
</tr>
</thead>
<tbody>
{% set allmagicwords = [] %}
{% for pad in pads %}
<tr>
<td class="name">
@ -43,6 +44,7 @@
<td class="magicwords">
{% for magicword in pad.magicwords %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{{ allmagicwords.append(magicword) }}
{% endfor %}
</td>
<!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>-->
@ -53,6 +55,45 @@
</tbody>
</table>
<div id="magicarea">
{% for magicword in allmagicwords | unique %}
{% if magicword != "__PUBLISH__" %}
<div class="magic" id="{{magicword}}">
<h2>{{ magicword }}</h2>
<table>
<thead>
<tr>
<th>name</th>
<th>versions</th>
</tr>
</thead>
<tbody>
{% for pad in pads %}
{% if magicword in pad.magicwords %}
<tr>
<td class="name">
<a href="{{ pad.link }}">{{ pad.padid }}</a>
</td>
<td class="versions">
{% for v in pad.versions %}<a href="{{ v.url }}">{{ v.type }}</a> {% endfor %}
</td>
<!-- WOW -->
<td class="magicwords">
{% for magicword in pad.magicwords %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endfor %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% endfor %}
</div>
<div id="footer">
<hr>
<p>

Loading…
Cancel
Save