Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Load metricsgraphics on main template

Roland Geiderb235cdbc4410
diff --git a/wger/core/templates/mobile/template.html b/wger/core/templates/mobile/template.html
index 0fd3e1723..6ea941def 100644
--- a/wger/core/templates/mobile/template.html
+++ b/wger/core/templates/mobile/template.html
@@ -55,6 +55,8 @@
<link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager-common.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager-mobile.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'bower_components/shariff/build/shariff.min.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics-custom.css' %}">
{% endcompress %}
{% compress js %}
@@ -66,6 +68,7 @@
<script src="{% static 'js/wger-core-mobile.js' %}"></script>
<script src="{% static 'js/exercises.js' %}"></script>
<script src="{% static 'js/nutrition.js' %}"></script>
+ <script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script>
{% endcompress %}
{% block header %}{% endblock %}
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index ad4660d48..cacbe200c 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -53,6 +53,8 @@
<link rel="stylesheet" type="text/css" href="{% static 'bower_components/components-font-awesome/css/font-awesome.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-custom.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'bower_components/shariff/build/shariff.min.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics-custom.css' %}">
{% endcompress %}
<link rel="icon" href="{% static 'images/favicon.png' %}" type="image/png">
@@ -65,6 +67,7 @@
<script src="{% static 'bower_components/bootstrap/dist/js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/exercises.js' %}"></script>
<script src="{% static 'js/nutrition.js' %}"></script>
+ <script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script>
{% endcompress %}
{% block header %}{% endblock %}
diff --git a/wger/exercises/templates/exercise/view.html b/wger/exercises/templates/exercise/view.html
index 6321e033d..bccc39d8a 100644
--- a/wger/exercises/templates/exercise/view.html
+++ b/wger/exercises/templates/exercise/view.html
@@ -40,9 +40,6 @@
{# Header #}
{# #}
{% block header %}
-<link rel="stylesheet" type="text/css" href="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.css' %}">
-<link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics-custom.css' %}">
-<script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script>
<script>
$(document).ready(function() {
draw_weight_log_chart({{json|safe}}, "{{svg_uuid}}");
diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.html
index 05c878440..0d095b4f3 100644
--- a/wger/manager/templates/workout/log.html
+++ b/wger/manager/templates/workout/log.html
@@ -33,9 +33,6 @@
{# Header #}
{# #}
{% block header %}
-<link rel="stylesheet" type="text/css" href="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.css' %}">
-<link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics-custom.css' %}">
-<script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script>
{% endblock %}
diff --git a/wger/weight/templates/overview.html b/wger/weight/templates/overview.html
index 2bd4faadb..5c94cb929 100644
--- a/wger/weight/templates/overview.html
+++ b/wger/weight/templates/overview.html
@@ -10,10 +10,7 @@
{# Header #}
{# #}
{% block header %}
-<link rel="stylesheet" type="text/css" href="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.css' %}">
-<link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics-custom.css' %}">
<script src="{% static 'js/weight.js' %}"></script>
-<script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script>
{% endblock %}