diff options
-rwxr-xr-x | source/pyAggr3g470r.py | 2 | ||||
-rw-r--r-- | 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 @@ </div> <hr /> - <a href="/article/${feed['feed_id']}:${article['article_id']}/?plain_text=1">Plain text</a> + %if plain_text == "1": + <a href="/article/${feed['feed_id']}:${article['article_id']}">HTML version</a> + %else: + <a href="/article/${feed['feed_id']}:${article['article_id']}/?plain_text=1">Plain text</a> + %endif - <a href="/epub/${feed['feed_id']}:${article['article_id']}">Export to EPUB</a> <br /> <a href="${article['article_link']}">Complete story</a> |