From 7a8a228dbebce6222d5464f6d82047b763f492fe Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 3 Feb 2021 15:59:12 -0800 Subject: [PATCH] Markup for posting a status about a list --- .../components/header_with_button.html | 1 + bookwyrm/templates/lists/list.html | 9 ++++++ bookwyrm/templates/lists/list_status.html | 30 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 bookwyrm/templates/components/header_with_button.html create mode 100644 bookwyrm/templates/lists/list_status.html diff --git a/bookwyrm/templates/components/header_with_button.html b/bookwyrm/templates/components/header_with_button.html new file mode 100644 index 00000000..94ee2300 --- /dev/null +++ b/bookwyrm/templates/components/header_with_button.html @@ -0,0 +1 @@ +

diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 213f9dca..aa51dc31 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -2,6 +2,15 @@ {% load bookwyrm_tags %} {% block panel %} +{% if items.exists and list.user == request.user %} +
+

Post list to feed

+
+ {% include 'lists/list_status.html' %} +
+
+{% endif %} + {% if request.user == list.user and pending_count %}

diff --git a/bookwyrm/templates/lists/list_status.html b/bookwyrm/templates/lists/list_status.html new file mode 100644 index 00000000..6ea9e930 --- /dev/null +++ b/bookwyrm/templates/lists/list_status.html @@ -0,0 +1,30 @@ +{% extends 'components/card.html' %} + +{% load bookwyrm_tags %} +{% load humanize %} + +{% block card-header %} +

+ {% include 'snippets/avatar.html' with user=request.user %} + {% include 'snippets/username.html' with user=request.user %} + created a list +

+{% endblock %} + +{% block card-footer %} + +{% endblock %} +