From b86f0f6200cb435cea91077352d5d95f610162a6 Mon Sep 17 00:00:00 2001
From: Alexander Kabui
Date: Thu, 26 Nov 2020 23:35:00 +0300
Subject: use css block in templates and remove comments
---
wqflask/wqflask/markdown_routes.py | 3 ++-
wqflask/wqflask/static/new/css/markdown.css | 7 -------
wqflask/wqflask/templates/environment.html | 2 --
wqflask/wqflask/templates/facilities.html | 3 +--
wqflask/wqflask/templates/links.html | 4 +---
wqflask/wqflask/templates/policies.html | 4 +---
wqflask/wqflask/templates/references.html | 3 +--
7 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/wqflask/wqflask/markdown_routes.py b/wqflask/wqflask/markdown_routes.py
index 7e6c7948..25eabe66 100644
--- a/wqflask/wqflask/markdown_routes.py
+++ b/wqflask/wqflask/markdown_routes.py
@@ -15,6 +15,7 @@ links_blueprint = Blueprint("links_blueprint", __name__)
policies_blueprint = Blueprint("policies_blueprint", __name__)
facilities_blueprint = Blueprint("facilities_blueprint", __name__)
+
def render_markdown(file_name):
"""Try to fetch the file name from Github and if that fails, try to
look for it inside the file system """
@@ -51,7 +52,7 @@ def references():
@environments_blueprint.route("/")
def environments():
- return render_template("environment.html", rendered_markdown=render_markdown_table("general/environments/environments.md")), 200
+ return render_template("environment.html", rendered_markdown=render_markdown("general/environments/environments.md")), 200
@links_blueprint.route("/")
diff --git a/wqflask/wqflask/static/new/css/markdown.css b/wqflask/wqflask/static/new/css/markdown.css
index 6d76c190..91b72cb8 100644
--- a/wqflask/wqflask/static/new/css/markdown.css
+++ b/wqflask/wqflask/static/new/css/markdown.css
@@ -15,8 +15,6 @@
margin-left: auto;
}
-
-
.github-btn {
margin: 20px 10px;
display: flex;
@@ -32,13 +30,8 @@
transition-duration: 0.5s;
padding: 8px 12px;
color: #fff;
- /*background: #27407a;*/
background: blue;
border-radius: 20px;
-
- /*text-align: center;*/
-
-
}
.github-btn a:hover {
diff --git a/wqflask/wqflask/templates/environment.html b/wqflask/wqflask/templates/environment.html
index a331d494..f378e0b8 100644
--- a/wqflask/wqflask/templates/environment.html
+++ b/wqflask/wqflask/templates/environment.html
@@ -19,7 +19,6 @@
{% endblock %}
diff --git a/wqflask/wqflask/templates/facilities.html b/wqflask/wqflask/templates/facilities.html
index 5be0c96d..63f110dd 100644
--- a/wqflask/wqflask/templates/facilities.html
+++ b/wqflask/wqflask/templates/facilities.html
@@ -3,7 +3,7 @@
{% block title %}Facilities{% endblock %}
{% block css %}
-
+
{% endblock %}
{% block content %}
@@ -17,5 +17,4 @@
-
{% endblock %}
\ No newline at end of file
diff --git a/wqflask/wqflask/templates/links.html b/wqflask/wqflask/templates/links.html
index ef481de2..94d8eab7 100644
--- a/wqflask/wqflask/templates/links.html
+++ b/wqflask/wqflask/templates/links.html
@@ -3,7 +3,7 @@
{% block title %}Links{% endblock %}
{% block css %}
-
+
{% endblock %}
{% block content %}
@@ -16,6 +16,4 @@
{{ rendered_markdown|safe }}
-
-
{% endblock %}
\ No newline at end of file
diff --git a/wqflask/wqflask/templates/policies.html b/wqflask/wqflask/templates/policies.html
index ef481de2..94d8eab7 100644
--- a/wqflask/wqflask/templates/policies.html
+++ b/wqflask/wqflask/templates/policies.html
@@ -3,7 +3,7 @@
{% block title %}Links{% endblock %}
{% block css %}
-
+
{% endblock %}
{% block content %}
@@ -16,6 +16,4 @@
{{ rendered_markdown|safe }}
-
-
{% endblock %}
\ No newline at end of file
diff --git a/wqflask/wqflask/templates/references.html b/wqflask/wqflask/templates/references.html
index e2f152e3..8dcf4493 100644
--- a/wqflask/wqflask/templates/references.html
+++ b/wqflask/wqflask/templates/references.html
@@ -3,7 +3,7 @@
{% block title %}Reference{% endblock %}
{% block css %}
-
+
{% endblock %}
{% block content %}
@@ -17,5 +17,4 @@
-
{% endblock %}
\ No newline at end of file
--
cgit v1.2.3