From 9e2f91c111636fe18acee3def7c98590e76ffb2a Mon Sep 17 00:00:00 2001 From: manetta Date: Thu, 28 Mar 2019 16:05:53 +0100 Subject: [PATCH] changing manifesto displays from iframes to plain text --- start.py | 3 ++- static/css/stylesheet.css | 1 - templates/en/base.html | 7 +++---- templates/en/index.html | 4 ++-- templates/en/manifesto.html | 20 +++----------------- templates/fr/manifesto.html | 20 +++----------------- 6 files changed, 13 insertions(+), 42 deletions(-) diff --git a/start.py b/start.py index f3385c8..d967d2b 100644 --- a/start.py +++ b/start.py @@ -81,8 +81,9 @@ def manifesto(lang, name): """ index = readings.load_index() filenames = sorted([manifesto for manifesto, _ in index.items()]) + manifesto = open('txt/'+name+'.txt', 'r').readlines() link = manifestos[name] - return flask.render_template(lang+'/manifesto.html', filenames=filenames, name=name, link=link, lang=lang) + return flask.render_template(lang+'/manifesto.html', filenames=filenames, name=name, manifesto=manifesto, link=link, lang=lang) @APP.route('//mappings', methods=['GET', 'POST']) def contrast_mappings(lang): diff --git a/static/css/stylesheet.css b/static/css/stylesheet.css index 7e1c195..04551cd 100644 --- a/static/css/stylesheet.css +++ b/static/css/stylesheet.css @@ -33,7 +33,6 @@ body{ margin:20px; font-family: mono, sans-serif; font-size: 8px; - /*background-color: #f0dfff;*/ overflow-x: hidden; z-index: -1; } diff --git a/templates/en/base.html b/templates/en/base.html index c4cb768..4f4715f 100644 --- a/templates/en/base.html +++ b/templates/en/base.html @@ -32,14 +32,15 @@ {% block search %}