summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-04-30 18:46:43 -0500
committerstilbruch <stilbruch@protonmail.com>2022-04-30 18:46:43 -0500
commit3f4d0f78751b15de1e4c3c9988df4443f5a71a9c (patch)
tree54c724292189f99df0bb65cf1a6423de6bc61657 /app/templates
parentc3badffbc3e3012477831868f72e35bd6cc1fe62 (diff)
downloadStrengthy-3f4d0f78751b15de1e4c3c9988df4443f5a71a9c.tar.xz
Strengthy-3f4d0f78751b15de1e4c3c9988df4443f5a71a9c.zip
Change some templates to use parameterized routes
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/base/layout.html2
-rw-r--r--app/templates/home.html2
-rw-r--r--app/templates/workout/record_select.html (renamed from app/templates/workout/select.html)2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/templates/base/layout.html b/app/templates/base/layout.html
index 4da4f30..69b470d 100644
--- a/app/templates/base/layout.html
+++ b/app/templates/base/layout.html
@@ -47,7 +47,7 @@
</span>
<span class="navbar-item">
- <a class="button is-white is-outlined" href="/workout/select">
+ <a class="button is-white is-outlined" href="/workout/record">
<span class="icon">
<i class="fa fa-pencil"></i>
</span>
diff --git a/app/templates/home.html b/app/templates/home.html
index 235e6e7..397b54b 100644
--- a/app/templates/home.html
+++ b/app/templates/home.html
@@ -109,7 +109,7 @@
<tr>
<td>{{ record.workout.name }}</td>
<td>{{ record.finished.strftime("%m/%d/%y %-I:%M %p") }}</td>
- <td class="level-right"><a class="button is-small is-primary" href="/workout/history?id={{ record.id }}">View</a></td>
+ <td class="level-right"><a class="button is-small is-primary" href="/workout/history/{{ record.id }}">View</a></td>
</tr>
{% endfor %}
</tbody>
diff --git a/app/templates/workout/select.html b/app/templates/workout/record_select.html
index 7109c70..aeee3e2 100644
--- a/app/templates/workout/select.html
+++ b/app/templates/workout/record_select.html
@@ -14,7 +14,7 @@
{% for exercise in workout.exercises %}
<p>{{ exercise.sets }} x {{ exercise.units }} x {{ exercise.name }}</p>
{% endfor %}
- <a class="button" href="/workout/record?id={{ workout.id }}">Start</a>
+ <a class="button" href="/workout/record/{{ workout.id }}">Start</a>
</div>
</div>
</div>