- {% if not goal and user == request.user %}
- {% now 'Y' as year %}
-
-
-
- {{ year }} reading goal
-
-
-
-
Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year.
+ {% if user == request.user %}
+
+ {% if goal %}
+
+
+ {% include 'snippets/toggle/toggle_button.html' with text="Edit goal" controls_text="show-edit-goal" %}
+
+ {% endif %}
+
+
+
+
+ {% now 'Y' as year %}
+
+
+
+ {{ year }} reading goal
+
+
+
+
Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year.
- {% include 'snippets/goal_form.html' %}
-
-
- {% elif not goal and user != request.user %}
+ {% include 'snippets/goal_form.html' with goal=goal year=year %}
+
+
+
+
+ {% endif %}
+
+ {% if not goal and user != request.user %}
{{ user.display_name }} hasn't set a reading goal for {{ year }}.
- {% else %}
+ {% endif %}
+
+ {% if goal %}
{% include 'snippets/goal_progress.html' with goal=goal %}
{% endif %}
diff --git a/bookwyrm/templates/snippets/goal_form.html b/bookwyrm/templates/snippets/goal_form.html
index 2e23aedd2..b856b8796 100644
--- a/bookwyrm/templates/snippets/goal_form.html
+++ b/bookwyrm/templates/snippets/goal_form.html
@@ -1,6 +1,6 @@
diff --git a/bookwyrm/templates/user.html b/bookwyrm/templates/user.html
index ef5552c3c..a41623a8a 100644
--- a/bookwyrm/templates/user.html
+++ b/bookwyrm/templates/user.html
@@ -40,6 +40,17 @@
See all {{ shelf_count }} shelves
+{% if goal %}
+
+
{% now 'Y' %} Reading Goal
+ {% include 'snippets/goal_progress.html' with goal=goal %}
+