Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the div with the current URL to the base template

Roland Geider7dccd6da5980
diff --git a/manager/templates/base.html b/manager/templates/base.html
index 29722b4f4..a2acf6564 100644
--- a/manager/templates/base.html
+++ b/manager/templates/base.html
@@ -2,10 +2,6 @@
{% block template %}
<article class="ym-g66 ym-gl content">
<div class="ym-gbox-left ym-clearfix" id="main-content">
- <!--
- This is needed as a clutch for us to handle redirects with AJAX
- -->
- <div id="current-url" data-current-url="{{request.get_full_path}}"></div>
{% block content %}{% endblock %}
</div>
</article>
diff --git a/manager/templates/base_wide.html b/manager/templates/base_wide.html
index 15d699533..bdba921f9 100644
--- a/manager/templates/base_wide.html
+++ b/manager/templates/base_wide.html
@@ -2,10 +2,6 @@
{% block template %}
<article class="ym-grid ym-gl content">
<div class="ym-gbox-left ym-clearfix" id="main-content">
- <!--
- This is needed as a clutch for us to handle redirects with AJAX
- -->
- <div id="current-url" data-current-url="{{request.get_full_path}}"></div>
{% block content %}{% endblock %}
</div>
</article>
diff --git a/manager/templates/template.html b/manager/templates/template.html
index c8ab7129f..319352bba 100644
--- a/manager/templates/template.html
+++ b/manager/templates/template.html
@@ -157,6 +157,7 @@
</section>
<div class="ym-wbox" id="content-wrapper">
<section class="ym-grid linearize-level-1">
+ <div id="current-url" data-current-url="{{request.get_full_path}}"></div>
{% block template %}{% endblock %}
</section>
</div>