diff --git a/app/static/css/style_pub.css b/app/static/css/style_pub.css index e48e08c..9b238ff 100644 --- a/app/static/css/style_pub.css +++ b/app/static/css/style_pub.css @@ -13,3 +13,23 @@ img{ padding-bottom: 10px; max-width: 50%; } + +.content{ + padding-left: 50px; + display: none; +} + +@media print { +.content{ + display:block; +} +} + + +@media only screen and (max-width: 600px) { + #main{font-family: monospace; + max-width: 100%; + } + + +} diff --git a/app/templates/home.html b/app/templates/home.html index 0112a66..d6d745d 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -37,7 +37,7 @@ ______ ______ ______ ______ __ ______
-

+ POETIC SOFTWARE
---------------

@@ -58,6 +58,8 @@ POETIC SOFTWARE
#+# #+# #+# #+# #+# #+# #+#+# #+#+# #+# #+# #+# #+# #+# ######## ######## ### ### ### ### ### ### ### ### ########## +
+
INTRODUCTION {% for post in posts %} @@ -75,7 +77,9 @@ INTRODUCTION {% for post in posts %} {% if "thesis"|string() == post.category|string() %}

-

{{count|length}}. {{ post.title|safe }}

+

{{count|length}}. {{ post.title|safe }}

+

{{ post.writingfield|safe }}
+ {% set __ = count.append(1) %} {% endif %} {% else %} @@ -88,7 +92,9 @@ INTRODUCTION {% for post in posts %} {% if "exercise"|string() == post.category|string() %}
-

{{count|length}}. {{ post.title|safe }}

+

{{count|length}}. {{ post.title|safe }}

+

{{ post.writingfield|safe }}
+ {% set __ = count.append(1) %} {% endif %} {% else %} @@ -101,7 +107,9 @@ INTRODUCTION {% for post in posts %} {% if "concept"|string() == post.category|string() %}
-

{{ post.title|safe }}

+

{{ post.title|safe }}

+

{{ post.writingfield|safe }}
+ {% endif %} {% else %} The Software is lacking a introduction, ask your system administrator about it. @@ -109,9 +117,22 @@ INTRODUCTION -

+ + + diff --git a/app/views.py b/app/views.py index 85de210..7410895 100644 --- a/app/views.py +++ b/app/views.py @@ -170,7 +170,7 @@ def get_words(query): #text = cleanhtml(text) regex = re.compile('[%s]' % re.escape(string.punctuation)) #text = regex.sub('', text) - soup = BeautifulSoup(text,"lxml") + soup = BeautifulSoup(text) for id, word in enumerate(soup.prettify().split()): if "<" not in word or ">" not in word or "=" not in word: word = regex.sub('', word) @@ -199,7 +199,7 @@ def get_words(query): #text = cleanhtml(text) #regex = re.compile('[%s]' % re.escape(string.punctuation)) #text = regex.sub('', text) - soup = BeautifulSoup(text,"lxml") + soup = BeautifulSoup(text) for id, word in enumerate(soup.prettify().split()): if word.startswith(query) and ("<" not in word or ">" not in word or "=" not in word): a = {} @@ -225,7 +225,7 @@ def replace_with(link, n, pid): post = Posts.query.filter_by(pid=pid).first() frompost = Posts.query.filter_by(pid=link).first() html = post.writingfield - soup = BeautifulSoup(html,"lxml") + soup = BeautifulSoup(html) words = soup.prettify().split() words[n] = words[n]+" → "+frompost.title+"" print(words)