added sections of magic words

This commit is contained in:
ccl 2020-12-04 17:17:50 +01:00
parent a0bd69c489
commit 9c5f481dbb

View File

@ -31,6 +31,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% set allmagicwords = [] %}
{% for pad in pads %} {% for pad in pads %}
<tr> <tr>
<td class="name"> <td class="name">
@ -43,6 +44,7 @@
<td class="magicwords"> <td class="magicwords">
{% for magicword in pad.magicwords %} {% for magicword in pad.magicwords %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a> <a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{{ allmagicwords.append(magicword) }}
{% endfor %} {% endfor %}
</td> </td>
<!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>--> <!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>-->
@ -53,9 +55,48 @@
</tbody> </tbody>
</table> </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"> <div id="footer">
<hr> <hr>
<p> <p>
<small>This page is generated using <a href="https://git.vvvvvvaria.org/varia/etherpump">Etherpump</a>. It is a command-line utility and python library that extends the multi writing and publishing functionalities of the Etherpad.</small> <small>This page is generated using <a href="https://git.vvvvvvaria.org/varia/etherpump">Etherpump</a>. It is a command-line utility and python library that extends the multi writing and publishing functionalities of the Etherpad.</small>
<br><br> <br><br>
</p> </p>