aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2020-11-26 23:35:00 +0300
committerAlexander Kabui2020-11-26 23:35:00 +0300
commitb86f0f6200cb435cea91077352d5d95f610162a6 (patch)
tree425bdc2faa96ac6fa228eb92f84b04a330064ff9 /wqflask
parent63c90d88499c2cda1b3da0960e179856aaba05c9 (diff)
downloadgenenetwork2-b86f0f6200cb435cea91077352d5d95f610162a6.tar.gz
use css block in templates and remove comments
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/markdown_routes.py3
-rw-r--r--wqflask/wqflask/static/new/css/markdown.css7
-rw-r--r--wqflask/wqflask/templates/environment.html2
-rw-r--r--wqflask/wqflask/templates/facilities.html3
-rw-r--r--wqflask/wqflask/templates/links.html4
-rw-r--r--wqflask/wqflask/templates/policies.html4
-rw-r--r--wqflask/wqflask/templates/references.html3
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 @@
<style type="text/css">
table {
width: 100%;
- /*margin: auto;*/
}
table, th, td {
border: 1px solid black;
@@ -32,6 +31,5 @@ td,th{
text-align: center;
}
-
</style>
{% 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 %}
-<!-- <link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" /> -->
+<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% endblock %}
{% block content %}
@@ -17,5 +17,4 @@
</div>
-<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% 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 %}
-<!-- <link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" /> -->
+<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% endblock %}
{% block content %}
@@ -16,6 +16,4 @@
{{ rendered_markdown|safe }}
</div>
-
-<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% 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 %}
-<!-- <link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" /> -->
+<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% endblock %}
{% block content %}
@@ -16,6 +16,4 @@
{{ rendered_markdown|safe }}
</div>
-
-<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% 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 %}
-<!-- <link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" /> -->
+<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% endblock %}
{% block content %}
@@ -17,5 +17,4 @@
</div>
-<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
{% endblock %} \ No newline at end of file