From 543c7590d8e8e273618e9584ad78a9049339192b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 18 Mar 2013 09:08:05 +0100 Subject: It is now possible to switch between the plain text and the HTML version of the article. --- source/pyAggr3g470r.py | 2 +- source/static/templates/article.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index e7beac47..5e9dba22 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -255,7 +255,7 @@ class pyAggr3g470r(object): tmpl = lookup.get_template("article.html") return tmpl.render(header_text=article["article_title"], article=article, previous=previous, following=following, \ - diaspora=conf.DIASPORA_POD, feed=feed, description=description) + diaspora=conf.DIASPORA_POD, feed=feed, description=description, plain_text=plain_text) article.exposed = True diff --git a/source/static/templates/article.html b/source/static/templates/article.html index 123aaa9f..ec0addb9 100644 --- a/source/static/templates/article.html +++ b/source/static/templates/article.html @@ -19,7 +19,11 @@
- Plain text + %if plain_text == "1": + HTML version + %else: + Plain text + %endif - Export to EPUB
Complete story -- cgit