From 5adbf2d08756b3648b143866289f8960e2019d10 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 2 Oct 2021 10:46:09 -0700 Subject: [PATCH] Move notification items into dir --- bookwyrm/templates/notifications/item.html | 18 +++++++++--------- .../notifications/{ => items}/add.html | 2 +- .../notifications/{ => items}/boost.html | 2 +- .../notifications/{ => items}/fav.html | 2 +- .../notifications/{ => items}/follow.html | 2 +- .../{ => items}/follow_request.html | 2 +- .../notifications/{ => items}/import.html | 2 +- .../notifications/{ => items}/item_layout.html | 0 .../notifications/{ => items}/mention.html | 2 +- .../notifications/{ => items}/reply.html | 2 +- .../notifications/{ => items}/report.html | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) rename bookwyrm/templates/notifications/{ => items}/add.html (94%) rename bookwyrm/templates/notifications/{ => items}/boost.html (96%) rename bookwyrm/templates/notifications/{ => items}/fav.html (96%) rename bookwyrm/templates/notifications/{ => items}/follow.html (83%) rename bookwyrm/templates/notifications/{ => items}/follow_request.html (86%) rename bookwyrm/templates/notifications/{ => items}/import.html (84%) rename bookwyrm/templates/notifications/{ => items}/item_layout.html (100%) rename bookwyrm/templates/notifications/{ => items}/mention.html (96%) rename bookwyrm/templates/notifications/{ => items}/reply.html (97%) rename bookwyrm/templates/notifications/{ => items}/report.html (84%) diff --git a/bookwyrm/templates/notifications/item.html b/bookwyrm/templates/notifications/item.html index 6c2ab7fe3..348d8950f 100644 --- a/bookwyrm/templates/notifications/item.html +++ b/bookwyrm/templates/notifications/item.html @@ -1,20 +1,20 @@ {# load the right template #} {% if notification.notification_type == 'MENTION' %} - {% include 'notifications/mention.html' %} + {% include 'notifications/items/mention.html' %} {% elif notification.notification_type == 'REPLY' %} - {% include 'notifications/reply.html' %} + {% include 'notifications/items/reply.html' %} {% elif notification.notification_type == 'BOOST' %} - {% include 'notifications/boost.html' %} + {% include 'notifications/items/boost.html' %} {% elif notification.notification_type == 'FAVORITE' %} - {% include 'notifications/fav.html' %} + {% include 'notifications/items/fav.html' %} {% elif notification.notification_type == 'FOLLOW' %} - {% include 'notifications/follow.html' %} + {% include 'notifications/items/follow.html' %} {% elif notification.notification_type == 'FOLLOW_REQUEST' %} - {% include 'notifications/follow_request.html' %} + {% include 'notifications/items/follow_request.html' %} {% elif notification.notification_type == 'IMPORT' %} - {% include 'notifications/import.html' %} + {% include 'notifications/items/import.html' %} {% elif notification.notification_type == 'ADD' %} - {% include 'notifications/add.html' %} + {% include 'notifications/items/add.html' %} {% elif notification.notification_type == 'REPORT' %} - {% include 'notifications/report.html' %} + {% include 'notifications/items/report.html' %} {% endif %} diff --git a/bookwyrm/templates/notifications/add.html b/bookwyrm/templates/notifications/items/add.html similarity index 94% rename from bookwyrm/templates/notifications/add.html rename to bookwyrm/templates/notifications/items/add.html index 6ccabf41e..50cba16b4 100644 --- a/bookwyrm/templates/notifications/add.html +++ b/bookwyrm/templates/notifications/items/add.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/boost.html b/bookwyrm/templates/notifications/items/boost.html similarity index 96% rename from bookwyrm/templates/notifications/boost.html rename to bookwyrm/templates/notifications/items/boost.html index 0653e8ee9..8ba868f5f 100644 --- a/bookwyrm/templates/notifications/boost.html +++ b/bookwyrm/templates/notifications/items/boost.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/fav.html b/bookwyrm/templates/notifications/items/fav.html similarity index 96% rename from bookwyrm/templates/notifications/fav.html rename to bookwyrm/templates/notifications/items/fav.html index c95070674..fb61e59ef 100644 --- a/bookwyrm/templates/notifications/fav.html +++ b/bookwyrm/templates/notifications/items/fav.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/follow.html b/bookwyrm/templates/notifications/items/follow.html similarity index 83% rename from bookwyrm/templates/notifications/follow.html rename to bookwyrm/templates/notifications/items/follow.html index 8ae0caa78..d85d2af3a 100644 --- a/bookwyrm/templates/notifications/follow.html +++ b/bookwyrm/templates/notifications/items/follow.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/follow_request.html b/bookwyrm/templates/notifications/items/follow_request.html similarity index 86% rename from bookwyrm/templates/notifications/follow_request.html rename to bookwyrm/templates/notifications/items/follow_request.html index 33c0bd1f0..febb0a50e 100644 --- a/bookwyrm/templates/notifications/follow_request.html +++ b/bookwyrm/templates/notifications/items/follow_request.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/import.html b/bookwyrm/templates/notifications/items/import.html similarity index 84% rename from bookwyrm/templates/notifications/import.html rename to bookwyrm/templates/notifications/items/import.html index 1d3111956..87dd09983 100644 --- a/bookwyrm/templates/notifications/import.html +++ b/bookwyrm/templates/notifications/items/import.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} diff --git a/bookwyrm/templates/notifications/item_layout.html b/bookwyrm/templates/notifications/items/item_layout.html similarity index 100% rename from bookwyrm/templates/notifications/item_layout.html rename to bookwyrm/templates/notifications/items/item_layout.html diff --git a/bookwyrm/templates/notifications/mention.html b/bookwyrm/templates/notifications/items/mention.html similarity index 96% rename from bookwyrm/templates/notifications/mention.html rename to bookwyrm/templates/notifications/items/mention.html index c456afdb8..003f4e29e 100644 --- a/bookwyrm/templates/notifications/mention.html +++ b/bookwyrm/templates/notifications/items/mention.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/reply.html b/bookwyrm/templates/notifications/items/reply.html similarity index 97% rename from bookwyrm/templates/notifications/reply.html rename to bookwyrm/templates/notifications/items/reply.html index d34a267bc..125e4dec2 100644 --- a/bookwyrm/templates/notifications/reply.html +++ b/bookwyrm/templates/notifications/items/reply.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %} {% load utilities %} diff --git a/bookwyrm/templates/notifications/report.html b/bookwyrm/templates/notifications/items/report.html similarity index 84% rename from bookwyrm/templates/notifications/report.html rename to bookwyrm/templates/notifications/items/report.html index ca0c877d1..9e56d352d 100644 --- a/bookwyrm/templates/notifications/report.html +++ b/bookwyrm/templates/notifications/items/report.html @@ -1,4 +1,4 @@ -{% extends 'notifications/item_layout.html' %} +{% extends 'notifications/items/item_layout.html' %} {% load i18n %}