Moved website into separate branch

This commit is contained in:
Armin Ronacher 2010-04-21 18:07:08 +02:00
parent e7811186e2
commit cdb17c55b3
97 changed files with 1 additions and 6930 deletions

View 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) }}">&laquo; Previous</a>
{% else %}
<span class=disabled>&laquo; Previous</span>
{% endif %}
| <strong>{{ page }}</strong> |
{% if page < page_count %}
<a href="{{ url_for('mailinglist_archive', page=page + 1) }}">Next &raquo;</a>
{% else %}
<span class=disabled>Next &raquo;</span>
{% endif %}
</div>
{% endblock %}

View 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 %}

View 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 %}

View 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 %}