aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-27 12:06:09 +0300
committerAlexander_Kabui2024-09-27 12:06:09 +0300
commit5b840e6421ae5b20ce946642053ff702d0588f03 (patch)
treee28010cfbb9db3c7dd289fb85e4429c688c82cf4 /gn2
parente062ac387aa48c40f8cfba720cbbfc7fc86320d1 (diff)
downloadgenenetwork2-5b840e6421ae5b20ce946642053ff702d0588f03.tar.gz
Refactor: use url_for to fetch static files.
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/templates/base.html22
-rwxr-xr-xgn2/wqflask/templates/index_page.html17
2 files changed, 25 insertions, 14 deletions
diff --git a/gn2/wqflask/templates/base.html b/gn2/wqflask/templates/base.html
index 8d477659..76c7df67 100644
--- a/gn2/wqflask/templates/base.html
+++ b/gn2/wqflask/templates/base.html
@@ -22,16 +22,22 @@
href="{{ url_for('css', filename='bootstrap/css/bootstrap.css') }}" />
<link REL="stylesheet"
TYPE="text/css"
- href="/static/new/css/bootstrap-custom.css" />
+ href="{{ url_for('static', filename='/new/css/bootstrap-custom.css') }}" />
<link REL="stylesheet"
TYPE="text/css"
- href="/static/new/css/non-responsive.css" />
- <link REL="stylesheet" TYPE="text/css" href="/static/new/css/docs.css" />
- <link rel="stylesheet" type="text/css" href="/static/new/css/colorbox.css" />
- <link rel="stylesheet" type="text/css" href="/static/new/css/parsley.css" />
- <link rel="stylesheet"
- type="text/css"
- href="/static/new/css/broken_links.css" />
+ href="{{ url_for('static', filename='/new/css/non-responsive.css') }}" />
+ <link REL="stylesheet"
+ TYPE="text/css"
+ href="{{ url_for('static', filename='/new/css/docs.css') }}" />
+ <link REL="stylesheet"
+ TYPE="text/css"
+ href="{{ url_for('static', filename='/new/css/colorbox.css') }}" />
+ <link REL="stylesheet"
+ TYPE="text/css"
+ href="{{ url_for('static', filename='/new/css/parsley.css') }}" />
+ <link REL="stylesheet"
+ TYPE="text/css"
+ href="{{ url_for('static', filename='/new/css/broken_links.css') }}" />
<link rel="stylesheet"
type="text/css"
href="{{ url_for('css', filename='fontawesome/css/font-awesome.min.css') }}" />
diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html
index d3af519b..7044e9e3 100755
--- a/gn2/wqflask/templates/index_page.html
+++ b/gn2/wqflask/templates/index_page.html
@@ -4,11 +4,13 @@
<link rel="stylesheet"
type="text/css"
href="{{ url_for('css', filename='uikit/css/uikit.min.css') }}" />
-
-
{% block css %}
-<link rel="stylesheet" href="/static/new/css/index_page.css" />
-<link rel="stylesheet" type="text/css" href="static/new/css/toots.css">
+<link rel="stylesheet"
+ type="text/css"
+ href="{{ url_for('static', filename='/new/css/index_page.css') }}" />
+<link rel="stylesheet"
+ type="text/css"
+ href="{{ url_for('static', filename='/new/css/toots.css') }}" />
<style TYPE="text/css">
p.interact { display: none; }
@@ -477,8 +479,11 @@
type="text/javascript"></script>
{% block js %}
<!--Note this is locally built emfed package see source file:https://github.com/sampsyo/emfed -->
-<script type="module" src="static/new/javascript/emfed.bundle.js"></script>
-<script src="/static/new/javascript/dataset_select_menu_orig.js"></script>
+
+<script src="{{ url_for('static', filename='/new/javascript/emfed.bundle.js') }}"
+ type="module"></script>
+<script src="{{ url_for('static', filename='/new/javascript/dataset_select_menu_orig.js') }}"
+ type="text/javascript"></script>
<script>
$(document).on('submit', '#searchform', function(event){