+ {% if readthrough.start_date %}
Started reading:
{{ readthrough.start_date | naturalday }}
+ {% endif %}
+ {% if readthrough.finish_date %}
Finished reading:
{{ readthrough.finish_date | naturalday }}
+ {% endif %}
- Edit readthrough dates
+ Edit read-through dates
-
+
+
+
+
-
-
-
+
+
+
+
+
+
+ Delete this read-though?
+
+
+
+
+
{% endfor %}
{% if request.user.is_authenticated %}
-
+
{% include 'snippets/create_status.html' with book=book hide_cover=True %}
diff --git a/bookwyrm/templates/followers.html b/bookwyrm/templates/followers.html
index 09457408..a5fdfd82 100644
--- a/bookwyrm/templates/followers.html
+++ b/bookwyrm/templates/followers.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% load fr_display %}
{% block content %}
-{% include 'user_header.html' with user=user %}
+{% include 'snippets/user_header.html' with user=user %}
Followers
diff --git a/bookwyrm/templates/following.html b/bookwyrm/templates/following.html
index 9131adea..c3bf976a 100644
--- a/bookwyrm/templates/following.html
+++ b/bookwyrm/templates/following.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% load fr_display %}
{% block content %}
-{% include 'user_header.html' %}
+{% include 'snippets/user_header.html' with user=user %}
Following
diff --git a/bookwyrm/templates/login.html b/bookwyrm/templates/login.html
index 7ef88df3..15b52a82 100644
--- a/bookwyrm/templates/login.html
+++ b/bookwyrm/templates/login.html
@@ -57,6 +57,5 @@
-
{% endblock %}
diff --git a/bookwyrm/templates/manage_invites.html b/bookwyrm/templates/manage_invites.html
index b9bb1c00..01cc1ea9 100644
--- a/bookwyrm/templates/manage_invites.html
+++ b/bookwyrm/templates/manage_invites.html
@@ -29,21 +29,18 @@
- Reset password
+ Reset password
diff --git a/bookwyrm/templates/search_results.html b/bookwyrm/templates/search_results.html
index cb997298..add82a7d 100644
--- a/bookwyrm/templates/search_results.html
+++ b/bookwyrm/templates/search_results.html
@@ -49,7 +49,7 @@
{% csrf_token %}
{% include 'snippets/search_result_text.html' with result=result link=False %}
-
Import book
+
Import book
{% endfor %}
diff --git a/bookwyrm/templates/shelf.html b/bookwyrm/templates/shelf.html
index 96279543..8e6cc9f8 100644
--- a/bookwyrm/templates/shelf.html
+++ b/bookwyrm/templates/shelf.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% load fr_display %}
{% block content %}
-{% include 'user_header.html' with user=user %}
+{% include 'snippets/user_header.html' with user=user %}
diff --git a/bookwyrm/templates/snippets/create_status.html b/bookwyrm/templates/snippets/create_status.html
index 9055e2d4..f8c5b3cf 100644
--- a/bookwyrm/templates/snippets/create_status.html
+++ b/bookwyrm/templates/snippets/create_status.html
@@ -1,109 +1,31 @@
{% load humanize %}
{% load fr_display %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% csrf_token %}
-
-
-
-
-
- Quote:
-
-
-
- Comment:
-
-
-
-
-
- Public
- Unlisted
- Followers only
- Private
-
-
-
post quote
-
-
-
-
+
+
+
+
+ {% include 'snippets/create_status_form.html' with type='review' %}
+
+
+
+
+ {% include 'snippets/create_status_form.html' with type="comment" placeholder="Some thougts on '"|add:book.title|add:"'" %}
+
+
+
+
+ {% include 'snippets/create_status_form.html' with type="quote" placeholder="An excerpt from '"|add:book.title|add:"'" %}
diff --git a/bookwyrm/templates/snippets/create_status_form.html b/bookwyrm/templates/snippets/create_status_form.html
new file mode 100644
index 00000000..fd88426a
--- /dev/null
+++ b/bookwyrm/templates/snippets/create_status_form.html
@@ -0,0 +1,40 @@
+
+ {% csrf_token %}
+
+
+ {% if type == 'review' %}
+
+ Title:
+
+
+ {% endif %}
+
+
{{ type|title }}:
+
+ {% if type == 'review' %}
+
Rating
+
+
+ {% for i in '12345'|make_list %}
+
+
+ {{ forloop.counter }} star{{ forloop.counter | pluralize }}
+
+ {% endfor %}
+
+ {% endif %}
+
+
+
+ {% if type == 'quote' %}
+
+ Comment:
+
+
+ {% endif %}
+
+ {% include 'snippets/privacy_select.html' %}
+ post {{ type }}
+
+
+
diff --git a/bookwyrm/templates/snippets/follow_button.html b/bookwyrm/templates/snippets/follow_button.html
index 1f914a6c..3fdcbab8 100644
--- a/bookwyrm/templates/snippets/follow_button.html
+++ b/bookwyrm/templates/snippets/follow_button.html
@@ -11,14 +11,14 @@ Follow request already sent.
{% csrf_token %}
{% if user.manually_approves_followers %}
-
Send follow request
+
Send follow request
{% else %}
-
Follow
+
Follow
{% endif %}
{% csrf_token %}
- Unfollow
+ Unfollow
{% endif %}
diff --git a/bookwyrm/templates/snippets/follow_request_buttons.html b/bookwyrm/templates/snippets/follow_request_buttons.html
index 165887e0..b6296d3f 100644
--- a/bookwyrm/templates/snippets/follow_request_buttons.html
+++ b/bookwyrm/templates/snippets/follow_request_buttons.html
@@ -3,11 +3,11 @@
{% csrf_token %}
- Accept
+ Accept
{% csrf_token %}
- Delete
+ Delete
{% endif %}
diff --git a/bookwyrm/templates/snippets/shelf.html b/bookwyrm/templates/snippets/shelf.html
index adee004e..a9238a45 100644
--- a/bookwyrm/templates/snippets/shelf.html
+++ b/bookwyrm/templates/snippets/shelf.html
@@ -71,7 +71,7 @@
{% csrf_token %}
-
+
Remove from shelf
diff --git a/bookwyrm/templates/snippets/shelve_button.html b/bookwyrm/templates/snippets/shelve_button.html
index b09ba297..84c560d7 100644
--- a/bookwyrm/templates/snippets/shelve_button.html
+++ b/bookwyrm/templates/snippets/shelve_button.html
@@ -5,7 +5,9 @@
{% active_shelf book as active_shelf %}
{% if active_shelf.identifier == 'read' %}
-
Read ✓
+
+ Read
+
{% elif active_shelf.identifier == 'reading' %}
I'm done!
@@ -42,7 +44,10 @@
{% csrf_token %}
- {{ shelf.name }} {% if shelf in book.shelf_set.all %} ✓ {% endif %}
+
+ {{ shelf.name }}
+ {% if shelf in book.shelf_set.all %} {% endif %}
+
{% endif %}
@@ -58,7 +63,7 @@
@@ -82,14 +87,14 @@
{% include 'snippets/privacy_select.html' %}
- Save
+ Save
Cancel
-
+
@@ -99,7 +104,7 @@
{% active_read_through book user as readthrough %}
diff --git a/bookwyrm/templates/snippets/status.html b/bookwyrm/templates/snippets/status.html
index 9390d39c..1af27ee4 100644
--- a/bookwyrm/templates/snippets/status.html
+++ b/bookwyrm/templates/snippets/status.html
@@ -5,18 +5,20 @@
@@ -117,7 +119,7 @@
{% csrf_token %}
-
+
Delete post
diff --git a/bookwyrm/templates/snippets/tag.html b/bookwyrm/templates/snippets/tag.html
index 38d2cd34..e62167f9 100644
--- a/bookwyrm/templates/snippets/tag.html
+++ b/bookwyrm/templates/snippets/tag.html
@@ -1,24 +1,22 @@
-
diff --git a/bookwyrm/templates/user_header.html b/bookwyrm/templates/snippets/user_header.html
similarity index 82%
rename from bookwyrm/templates/user_header.html
rename to bookwyrm/templates/snippets/user_header.html
index ecd1ec2d..bb892757 100644
--- a/bookwyrm/templates/user_header.html
+++ b/bookwyrm/templates/snippets/user_header.html
@@ -18,15 +18,18 @@
diff --git a/bookwyrm/templates/user.html b/bookwyrm/templates/user.html
index 3e409486..b6d808c8 100644
--- a/bookwyrm/templates/user.html
+++ b/bookwyrm/templates/user.html
@@ -1,9 +1,7 @@
{% extends 'layout.html' %}
{% block content %}
-
- {% include 'user_header.html' with user=user %}
-
+{% include 'snippets/user_header.html' with user=user %}
Shelves
diff --git a/bookwyrm/templates/user_shelves.html b/bookwyrm/templates/user_shelves.html
index af4f9d23..acda58ca 100644
--- a/bookwyrm/templates/user_shelves.html
+++ b/bookwyrm/templates/user_shelves.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% load fr_display %}
{% block content %}
-{% include 'user_header.html' with user=user %}
+{% include 'snippets/user_header.html' with user=user %}
diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py
index 48095850..f1bec713 100644
--- a/bookwyrm/urls.py
+++ b/bookwyrm/urls.py
@@ -107,7 +107,7 @@ urlpatterns = [
re_path(r'^rate/?$', actions.rate),
re_path(r'^review/?$', actions.review),
- re_path(r'^quotate/?$', actions.quotate),
+ re_path(r'^quote/?$', actions.quotate),
re_path(r'^comment/?$', actions.comment),
re_path(r'^tag/?$', actions.tag),
re_path(r'^untag/?$', actions.untag),
diff --git a/bookwyrm/views.py b/bookwyrm/views.py
index 9794d585..454f5c08 100644
--- a/bookwyrm/views.py
+++ b/bookwyrm/views.py
@@ -430,7 +430,7 @@ def status_page(request, username, status_id):
return JsonResponse(status.to_activity(), encoder=ActivityEncoder)
data = {
- 'title': status.type,
+ 'title': 'Status by %s' % user.username,
'status': status,
}
return TemplateResponse(request, 'status.html', data)