Browse Source

Run retabber and trim indentation

main
Luke Murphy 3 years 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> <!DOCTYPE html>
<html lang="{{ language }}"> <html lang="{{ language }}">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="{% block css %}stylesheet.css{% endblock %}"> <link rel="stylesheet" type="text/css" href="{% block css %}stylesheet.css{% endblock %}">
<!--<link rel="alternate" type="application/rss+xml" href="recentchanges.rss">--> <!--<link rel="alternate" type="application/rss+xml" href="recentchanges.rss">-->
{% block scripts %} {% block scripts %}
{% endblock scripts %} {% endblock scripts %}
</head> </head>
<body> <body>
{% set padoftheday = pads | random %} {% set padoftheday = pads | random %}
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<div id="welcome"> <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>. Welcome! The pages below have been deliberately published by their authors in
<br> order to share their thoughts, research and process in an early form. This
<br> page represents one of Varia's low-effort publishing tools. The pages are all
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>. produced through Varia's <a href="https://pad.vvvvvvaria.org/">Etherpad instance</a>.
<br> <br>
<br> <br>
This index is updated every 60 minutes. 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> </div>
<table> <table>
<thead> <thead>
<tr> <tr>
<th>name</th> <th>name</th>
<th>versions</th> <th>versions</th>
<!--<th>last edited</th>--> <!--<th>last edited</th>-->
<!--<th>revisions</th>--> <!--<th>revisions</th>-->
<!--<th>authors</th>--> <!--<th>authors</th>-->
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% set allmagicwords = [] %} {% set allmagicwords = [] %}
{% for pad in pads %} {% for pad in pads %}
<tr> <tr>
<td class="name"> <td class="name">
<a href="{{ pad.link }}">{{ pad.padid }}</a> <a href="{{ pad.link }}">{{ pad.padid }}</a>
</td> </td>
<td class="versions">
{% for v in pad.versions %}<a href="{{ v.url }}">{{ v.type }}</a> {% endfor %} <td class="versions">
</td> {% for v in pad.versions %}<a href="{{ v.url }}">{{ v.type }}</a> {% endfor %}
<!-- WOW --> </td>
<td class="magicwords">
{% for magicword in pad.magicwords %} <!-- WOW -->
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a> <td class="magicwords">
{% if magicword %} {% for magicword in pad.magicwords %}
<div style="display:none;">{{ allmagicwords.append(magicword) }}</div> <a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endif %} {% if magicword %}
{% endfor %} <div style="display:none;">{{ allmagicwords.append(magicword) }}</div>
</td> {% endif %}
<!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>--> {% endfor %}
<!--<td class="revisions">{{ pad.revisions }}</td>--> </td>
<!--<td class="authors">{{ pad.author_ids|length }}</td>--> <!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>-->
<!--<td class="revisions">{{ pad.revisions }}</td>-->
<!--<td class="authors">{{ pad.author_ids|length }}</td>-->
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<div id="magicarea"> <div id="magicarea">
{% for magicword in allmagicwords | unique %} {% for magicword in allmagicwords | unique %}
{% if magicword != "__PUBLISH__" %} {% if magicword != "__PUBLISH__" %}
<div class="magic" id="{{magicword}}"> <div class="magic" id="{{magicword}}">
<h2>{{ magicword }}</h2> <h2>{{ magicword }}</h2>
<table> <table>
<thead> <thead>
<tr> <tr>
<th>name</th> <th>name</th>
<th>versions</th> <th>versions</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for pad in pads %} {% for pad in pads %}
{% if magicword in pad.magicwords %} {% if magicword in pad.magicwords %}
<tr> <tr>
<td class="name"> <td class="name">
<a href="{{ pad.link }}">{{ pad.padid }}</a> <a href="{{ pad.link }}">{{ pad.padid }}</a>
</td> </td>
<td class="versions"> <td class="versions">
{% for v in pad.versions %}<a href="{{ v.url }}">{{ v.type }}</a> {% endfor %} {% for v in pad.versions %}<a href="{{ v.url }}">{{ v.type }}</a> {% endfor %}
</td> </td>
<!-- WOW --> <!-- WOW -->
<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>
{% endfor %} {% endfor %}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </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>
<br><br> This page is generated using <a href="https://git.vvvvvvaria.org/varia/etherpump">Etherpump</a>.
</p> It is a command-line utility and python library that extends the multi
{% block info %}<p class="info">Last updated {{ timestamp }}.</p>{% endblock %} writing and publishing functionalities of the Etherpad.
</small>
<br><br>
</p>
{% block info %}<p class="info">Last updated {{ timestamp }}.</p>{% endblock %}
</div> </div>
</body> </body>
</html> </html>

Loading…
Cancel
Save