From 4dc289551fee1219e1006dcce767ccf59fd8d79f Mon Sep 17 00:00:00 2001 From: Matts Date: Sat, 11 Feb 2012 19:07:09 -0500 Subject: List archives using a 2 column table. --- tuxlite_tbs/templates/archives.html | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html index 1032c42..1520943 100644 --- a/tuxlite_tbs/templates/archives.html +++ b/tuxlite_tbs/templates/archives.html @@ -1,15 +1,19 @@ {% extends "base.html" %} {% block title %}{{ SITENAME }} [archive]{% endblock %} {% block content %} -{% for year, date_year in dates|groupby( 'date.year' ) %} -

{{ year }}

-{% for month, articles in date_year|groupby( 'date.month' ) %} -

{{ articles[ 0 ].date.strftime( '%B' ) }}

- -{% endfor %} -{% endfor %} + +

Archives

+ + + + {% for article in dates %} + + + + + {% endfor %} + +
{{ article.date.strftime("%d %b %Y") }}{{ article.title }}
+ + {% endblock %} -- cgit