Moved website into separate branch
This commit is contained in:
parent
e7811186e2
commit
cdb17c55b3
97 changed files with 1 additions and 6930 deletions
27
templates/mailinglist/archive.html
Normal file
27
templates/mailinglist/archive.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% extends "mailinglist/layout.html" %}
|
||||
{% block title %}Mailinglist Archive{% endblock %}
|
||||
{% block mailbody %}
|
||||
<h2>Mailinglist Archive</h2>
|
||||
<ul class=archive>
|
||||
{% for thread in threads %}
|
||||
<li><a href="{{ thread.url }}">{{ thread.title }}</a>
|
||||
<span class=meta>
|
||||
by {{ thread.author_name or thread.author_email }}
|
||||
on {{ thread.date.strftime('%Y-%m-%d @ %H:%M') }}
|
||||
({{ thread.reply_count }} repl{{ thread.reply_count == 1 and 'y' or 'ies' }})</span>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class=pagination>
|
||||
{% if page > 1 %}
|
||||
<a href="{{ url_for('mailinglist_archive', page=page - 1) }}">« Previous</a>
|
||||
{% else %}
|
||||
<span class=disabled>« Previous</span>
|
||||
{% endif %}
|
||||
| <strong>{{ page }}</strong> |
|
||||
{% if page < page_count %}
|
||||
<a href="{{ url_for('mailinglist_archive', page=page + 1) }}">Next »</a>
|
||||
{% else %}
|
||||
<span class=disabled>Next »</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
20
templates/mailinglist/index.html
Normal file
20
templates/mailinglist/index.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{% extends "mailinglist/layout.html" %}
|
||||
{% block title %}Mailinglist{% endblock %}
|
||||
{% block mailbody %}
|
||||
<p>
|
||||
There is a mailinglist for Flask hosted on <a
|
||||
href=http://librelist.com/>librelist</a> you can use for both user requests
|
||||
and development discussions.
|
||||
|
||||
<p>
|
||||
To subscribe, send a mail to <em>flask@librelist.com</em> and reply
|
||||
to the confirmation mail. Make sure to check your Spam folder, just in
|
||||
case. To unsubscribe again, send a mail to
|
||||
<em>flask-unsubscribe@librelist.com</em> and reply to the
|
||||
confirmation mail.
|
||||
|
||||
<p>
|
||||
The <a href="{{ url_for('mailinglist_archive') }}">mailinglist archive</a>
|
||||
is synched every hour. Go there to read up old discussions grouped by
|
||||
thread.
|
||||
{% endblock %}
|
||||
21
templates/mailinglist/layout.html
Normal file
21
templates/mailinglist/layout.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<style type=text/css>
|
||||
h1 { margin: 0 0 30px 0; background: url(/static/mailinglist.png) no-repeat center; height: 165px; }
|
||||
h1 span { display: none; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<h1><span>Flask Mailinglist</span></h1>
|
||||
<div class=backnav>
|
||||
<a href="{{ url_for('index') }}">back to website</a>
|
||||
{% if request.endpoint != 'mailinglist_index' %}//
|
||||
<a href="{{ url_for('mailinglist_index') }}">list information</a>
|
||||
{% endif %}
|
||||
{% if request.endpoint != 'mailinglist_archive' %}//
|
||||
<a href="{{ url_for('mailinglist_archive') }}">go to archive</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% block mailbody %}{% endblock %}
|
||||
{% endblock %}
|
||||
34
templates/mailinglist/show_thread.html
Normal file
34
templates/mailinglist/show_thread.html
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{% extends "mailinglist/layout.html" %}
|
||||
{% block title %}{{ thread.title }}{% endblock %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<script type=text/javascript src=/static/mailinglist.js></script>
|
||||
{% endblock %}
|
||||
{% block mailbody %}
|
||||
<h2>{{ thread.title }}</h2>
|
||||
|
||||
<ul class=mailtree>
|
||||
{% for mail in [thread.root] recursive %}
|
||||
<li><div class=link id="link-{{ mail.id }}"><a href="#{{
|
||||
mail.id }}">{{ mail.subject }}</a> by {{
|
||||
mail.author_name or mail.author_email }}</div>
|
||||
{% if mail.children %}<ul>{{ loop(mail.children) }}</ul>{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% for mail in [thread.root] recursive %}
|
||||
<div class=mail id="{{ mail.id }}">
|
||||
<h3>{{ mail.subject }}</h3>
|
||||
<dl>
|
||||
<dt>From:
|
||||
<dd class=from>{{ mail.author_name or mail.author_email }}
|
||||
<dt>Date:
|
||||
<dd>{{ mail.date.strftime('%Y-%m-%d @ %H:%M') }}
|
||||
</dl>
|
||||
<pre>{{ mail.rendered_text }}</pre>
|
||||
{% if mail.children %}
|
||||
<div class=children>{{ loop(mail.children) }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue