aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2020-11-26 17:13:24 +0300
committerAlexander Kabui2020-11-26 17:13:24 +0300
commitd8fb319272a4833ed3045cdc5ed46e0e204f78e1 (patch)
treeaf8c4d8a5ba28894787db4efea2c430b32cc7886
parentb0c1d59d4e5a9580b4d15664a53845969db32d0a (diff)
downloadgenenetwork2-d8fb319272a4833ed3045cdc5ed46e0e204f78e1.tar.gz
add and register environments blueprint
-rw-r--r--wqflask/wqflask/__init__.py2
-rw-r--r--wqflask/wqflask/templates/base.html2
-rw-r--r--wqflask/wqflask/templates/references.html2
3 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py
index d7da3755..f44b4bfd 100644
--- a/wqflask/wqflask/__init__.py
+++ b/wqflask/wqflask/__init__.py
@@ -10,6 +10,7 @@ from wqflask.markdown_routes import glossary_blueprint
from wqflask.markdown_routes import references_blueprint
from wqflask.markdown_routes import links_blueprint
from wqflask.markdown_routes import policies_blueprint
+from wqflask.markdown_routes import environments_blueprint
app = Flask(__name__)
@@ -25,6 +26,7 @@ app.register_blueprint(glossary_blueprint, url_prefix="/glossary")
app.register_blueprint(references_blueprint,url_prefix="/references")
app.register_blueprint(links_blueprint,url_prefix="/links")
app.register_blueprint(policies_blueprint,url_prefix="/policies")
+app.register_blueprint(environments_blueprint,url_prefix="/environments")
@app.before_request
def before_request():
diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html
index fefb519c..8ba5d0d5 100644
--- a/wqflask/wqflask/templates/base.html
+++ b/wqflask/wqflask/templates/base.html
@@ -70,7 +70,7 @@
<li><a href="http://gn1.genenetwork.org/faq.html">FAQ</a></li>
<li><a href="{{ url_for('policies_blueprint.policies') }}">Policies</a></li>
<li><a href="{{ url_for('links_blueprint.links') }}">Links</a></li>
- <li><a href="/environments">Environments</a></li>
+ <li><a href="{{ url_for('environments_blueprint.environments') }}">Environments</a></li>
<li><a href="/news">GN1 News</a></li>
</ul>
</li>
diff --git a/wqflask/wqflask/templates/references.html b/wqflask/wqflask/templates/references.html
index e05c8440..e2f152e3 100644
--- a/wqflask/wqflask/templates/references.html
+++ b/wqflask/wqflask/templates/references.html
@@ -9,7 +9,7 @@
{% block content %}
<div class="github-btn">
- <a href="https://raw.githubusercontent.com/genenetwork/gn-docs/master/general/glossary/glos">Edit on Github</a>
+ <a href="https://github.com/genenetwork/gn-docs">Edit on Github</a>
</div>
<div id="markdown" class="container">