aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/index_page.html
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/wqflask/templates/index_page.html
parente062ac387aa48c40f8cfba720cbbfc7fc86320d1 (diff)
downloadgenenetwork2-5b840e6421ae5b20ce946642053ff702d0588f03.tar.gz
Refactor: use url_for to fetch static files.
Diffstat (limited to 'gn2/wqflask/templates/index_page.html')
-rwxr-xr-xgn2/wqflask/templates/index_page.html17
1 files changed, 11 insertions, 6 deletions
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){