diff --git a/bookwyrm/templates/snippets/components/card.html b/bookwyrm/templates/snippets/components/card.html new file mode 100644 index 000000000..3c2cf9f1e --- /dev/null +++ b/bookwyrm/templates/snippets/components/card.html @@ -0,0 +1,19 @@ +
+
+ {% block card-header %} + {% endblock %} +
+ +
+ {% block card-content %} + {% endblock %} +
+ + + + {% block card-bonus %} + {% endblock %} +
diff --git a/bookwyrm/templates/snippets/status_body.html b/bookwyrm/templates/snippets/status_body.html index d37fa0986..f4e460240 100644 --- a/bookwyrm/templates/snippets/status_body.html +++ b/bookwyrm/templates/snippets/status_body.html @@ -1,101 +1,88 @@ +{% extends 'snippets/components/card.html' %} + {% load bookwyrm_tags %} {% load humanize %} -{% if not status.deleted %} -
-
-
-
-
- {% include 'snippets/status_header.html' with status=status %} -
-
-
-
+{% block card-header %} +

+ {% include 'snippets/status_header.html' with status=status %} +

+{% endblock %} -
- {% include 'snippets/status_content.html' with status=status %} -
- -
-{% else %} -
-
-

- {% include 'snippets/avatar.html' with user=status.user %} - {% include 'snippets/username.html' with user=status.user %} - deleted this status -

-
-
+ +{% if status.user == request.user %} + {% endif %} +{% endblock %} + + +{% block card-bonus %} +{% if request.user.is_authenticated %} +{% with status.id|uuid as uuid %} + + +{% endwith %} +{% endif %} + +{% if status.user == request.user %} +
+ + +
+{% endif %} +{% endblock %}