Pumping pads as files into publishing frameworks!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

132 lines
3.7 KiB

<!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 %}
</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.
</div>
<table>
<thead>
<tr>
<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 | sort %}
{% if magicword == "__PUBLISH__" %}
<p class="magicwords-publish">{{magicword}}</p>
{% else %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endif %}
{% 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 | sort %}
{% 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 | sort %}
{% if magicword == "__PUBLISH__" %}
<p class="magicwords-publish">{{magicword}}</p>
{% else %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endif %}
{% 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 %}
</div>
</body>
</html>