Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the options to the sidebar

Roland Geidera60eed19ab45
diff --git a/manager/templates/exercise/view.html b/manager/templates/exercise/view.html
index 3b04ae077..ca93ce6ea 100644
--- a/manager/templates/exercise/view.html
+++ b/manager/templates/exercise/view.html
@@ -14,10 +14,6 @@
{% block content %}
<h2>{{ exercise.name }}</h2>
-<p>
- <a href="/exercise/edit/{{ exercise.id }}">{% trans "Edit" %}</a> |
- <a href="/exercise/delete/{{ exercise.id }}">{% trans "Delete" %}</a>
-</p>
<p>{% trans "Category" %}: <strong>{{ exercise.category.name }}</strong></p>
@@ -60,4 +56,12 @@
<!--
Side bar?
--->
\ No newline at end of file
+-->
+{% block sidebar %}
+ <h3>{% trans "Options" %}</h3>
+
+ <p>
+ <a href="/exercise/edit/{{ exercise.id }}">{% trans "Edit" %}</a> |
+ <a href="/exercise/delete/{{ exercise.id }}">{% trans "Delete" %}</a>
+ </p>
+{% endblock %}
\ No newline at end of file