Updated website to support a snippet archive.
This commit is contained in:
parent
9224212d49
commit
ef7818e10e
12 changed files with 66 additions and 24 deletions
|
|
@ -6,9 +6,11 @@
|
|||
h1 span, p.tagline { display: none; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<h1><span>Flask</span></h1>
|
||||
{% block body_title %}
|
||||
{{ super() }}
|
||||
<p class=tagline>because sometimes a pocket knife is not enough
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<blockquote>
|
||||
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.
|
||||
And before you ask: It's <a href=docs/license/>BSD licensed</a>!
|
||||
|
|
|
|||
|
|
@ -7,6 +7,14 @@
|
|||
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
||||
{% endblock %}
|
||||
<div class=box>
|
||||
{% block body_title %}
|
||||
<h1><span>{{ self.title() }}</span></h1>
|
||||
{% endblock %}
|
||||
<p class=nav>
|
||||
<a href=/>overview</a> //
|
||||
<a href=/docs/>documentation</a> //
|
||||
<a href=/mailinglist/>mailinglist</a> //
|
||||
<a href=/snippets/>snippets</a>
|
||||
{% block body %}{% endblock %}
|
||||
<p class=footer>© Copyright 2010 by <a href=http://lucumr.pocoo.org/>Armin Ronacher</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "mailinglist/layout.html" %}
|
||||
{% block title %}Mailinglist Archive{% endblock %}
|
||||
{% block mailbody %}
|
||||
{% block body %}
|
||||
<h2>Mailinglist Archive</h2>
|
||||
<ul class=archive>
|
||||
{% for thread in threads %}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "mailinglist/layout.html" %}
|
||||
{% block title %}Mailinglist{% endblock %}
|
||||
{% block mailbody %}
|
||||
{% block body %}
|
||||
<p>
|
||||
There is a mailinglist for Flask hosted on <a
|
||||
href=http://librelist.com/>librelist</a> you can use for both user requests
|
||||
|
|
|
|||
|
|
@ -6,16 +6,6 @@
|
|||
h1 span { display: none; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
{% block body_title %}
|
||||
<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 the archive</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% block mailbody %}{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
{{ super() }}
|
||||
<script type=text/javascript src=/static/mailinglist.js></script>
|
||||
{% endblock %}
|
||||
{% block mailbody %}
|
||||
{% block body %}
|
||||
<p class=backnav>
|
||||
<a href=/mailinglist/archive/>« back to archive</a>
|
||||
<h2>{{ thread.title }}</h2>
|
||||
|
||||
<ul class=mailtree>
|
||||
|
|
|
|||
17
templates/snippets/index.html
Normal file
17
templates/snippets/index.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "snippets/layout.html" %}
|
||||
{% block title %}Snippets Archive{% endblock %}
|
||||
{% block body %}
|
||||
<p>
|
||||
Welcome to the Flask snippet archive. This is the place where anyone
|
||||
can drop helpful pieces of code for others to use.
|
||||
<p>
|
||||
In order to add snippets to this page or to add comments, all you need
|
||||
is an <a href=http://en.wikipedia.org/wiki/OpenID>OpenID</a> account.
|
||||
<form action=/snippets/search/ method=get>
|
||||
<p>
|
||||
Search snippets:
|
||||
<input type=text name=q size=30>
|
||||
<input type=submit value=Search>
|
||||
</form>
|
||||
<h2>Snippets by Category</h2>
|
||||
{% endblock %}
|
||||
11
templates/snippets/layout.html
Normal file
11
templates/snippets/layout.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<style type=text/css>
|
||||
h1 { margin: 0 0 30px 0; background: url(/static/snippets.png) no-repeat center; height: 165px; }
|
||||
h1 span { display: none; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block body_title %}
|
||||
<h1><span>Flask Snippets</span></h1>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue