diff --git a/bookwyrm/templates/notifications/add.html b/bookwyrm/templates/notifications/add.html new file mode 100644 index 00000000..6ccabf41 --- /dev/null +++ b/bookwyrm/templates/notifications/add.html @@ -0,0 +1,35 @@ +{% extends 'notifications/item_layout.html' %} + +{% load i18n %} +{% load utilities %} + +{% block icon %} + +{% endblock %} + +{% block description %} +{% with book_path=notification.related_list_item.book.local_path %} +{% with book_title=notification.related_list_item.book|book_title %} +{% with list_path=notification.related_list_item.book_list.local_path %} +{% with list_name=notification.related_list_item.book_list.name %} + + {% if notification.related_list_item.approved %} + {% blocktrans trimmed %} + + added {{ book_title }} to your list "{{ list_name }}" + + {% endblocktrans %} + {% else %} + {% blocktrans trimmed %} + + suggested adding {{ book_title }} to your list "{{ list_name }}" + + {% endblocktrans %} + {% endif %} + +{% endwith %} +{% endwith %} +{% endwith %} +{% endwith %} +{% endblock %} + diff --git a/bookwyrm/templates/notifications/boost.html b/bookwyrm/templates/notifications/boost.html new file mode 100644 index 00000000..0653e8ee --- /dev/null +++ b/bookwyrm/templates/notifications/boost.html @@ -0,0 +1,57 @@ +{% extends 'notifications/item_layout.html' %} + +{% load i18n %} +{% load utilities %} + +{% block icon %} + +{% endblock %} + +{% block description %} + {% with related_status.book|book_title as book_title %} + {% with related_status.local_path as related_path %} + + {% if related_status.status_type == 'Review' %} + {% blocktrans trimmed %} + + boosted your review of {{ book_title }} + + {% endblocktrans %} + {% elif related_status.status_type == 'Comment' %} + {% blocktrans trimmed %} + + boosted your comment on{{ book_title }} + + {% endblocktrans %} + {% elif related_status.status_type == 'Quotation' %} + {% blocktrans trimmed %} + + boosted your quote from {{ book_title }} + + {% endblocktrans %} + {% else %} + {% blocktrans trimmed %} + + boosted your status + + {% endblocktrans %} + {% endif %} + + {% endwith %} + {% endwith %} +{% endblock %} + + +{% block preview %} +