Browse Source

Run retabber and trim indentation

main
decentral1se 1 year ago
parent
commit
874baa9f90
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 172
      templates/index.html

172
templates/index.html

@ -1,108 +1,124 @@
<!DOCTYPE html>
<html lang="{{ language }}">
<head>
<meta charset="utf-8" />
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="{% block css %}stylesheet.css{% endblock %}">
<!--<link rel="alternate" type="application/rss+xml" href="recentchanges.rss">-->
{% block scripts %}
{% endblock scripts %}
<meta charset="utf-8" />
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="{% block css %}stylesheet.css{% endblock %}">
<!--<link rel="alternate" type="application/rss+xml" href="recentchanges.rss">-->
{% block scripts %}
{% endblock scripts %}
</head>
<body>
{% set padoftheday = pads | random %}
<h1>{{ title }}</h1>
<div id="welcome">
Welcome! The pages below have been deliberately published by their authors in order to share their thoughts, research and process in an early form. This page represents one of Varia's low-effort publishing tools. The pages are all produced through Varia's <a href="https://pad.vvvvvvaria.org/">Etherpad instance</a>.
<br>
<br>
Etherpad is used as collaborative writing tool to take notes, create readers, coordinate projects and document gatherings that happen in and around Varia. For example <a href="{{ padoftheday.link }}">{{ padoftheday.padid }}</a>.
<br>
<br>
This index is updated every 60 minutes.
Welcome! The pages below have been deliberately published by their authors in
order to share their thoughts, research and process in an early form. This
page represents one of Varia's low-effort publishing tools. The pages are all
produced through Varia's <a href="https://pad.vvvvvvaria.org/">Etherpad instance</a>.
<br>
<br>
Etherpad is used as collaborative writing tool to take notes, create readers,
coordinate projects and document gatherings that happen in and around Varia.
For example <a href="{{ padoftheday.link }}">{{ padoftheday.padid }}</a>.
<br>
<br>
This index is updated every 60 minutes.
</div>
<table>
<thead>
<tr>
<th>name</th>
<th>versions</th>
<!--<th>last edited</th>-->
<!--<th>revisions</th>-->
<!--<th>authors</th>-->
<th>name</th>
<th>versions</th>
<!--<th>last edited</th>-->
<!--<th>revisions</th>-->
<!--<th>authors</th>-->
</tr>
</thead>
<tbody>
{% set allmagicwords = [] %}
{% for pad in pads %}
<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>
{% if magicword %}
<div style="display:none;">{{ allmagicwords.append(magicword) }}</div>
{% endif %}
{% endfor %}
</td>
<!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>-->
<!--<td class="revisions">{{ pad.revisions }}</td>-->
<!--<td class="authors">{{ pad.author_ids|length }}</td>-->
<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>
{% if magicword %}
<div style="display:none;">{{ allmagicwords.append(magicword) }}</div>
{% endif %}
{% endfor %}
</td>
<!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>-->
<!--<td class="revisions">{{ pad.revisions }}</td>-->
<!--<td class="authors">{{ pad.author_ids|length }}</td>-->
</tr>
{% endfor %}
</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 %}
{% 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>
<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>
</p>
{% block info %}<p class="info">Last updated {{ timestamp }}.</p>{% endblock %}
<hr>
<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>
<br><br>
</p>
{% block info %}<p class="info">Last updated {{ timestamp }}.</p>{% endblock %}
</div>
</body>
</html>

Loading…
Cancel
Save