From 1bd7023fdf6a24bcac672760360f692c0c91abbf Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Fri, 26 Jan 2024 14:22:18 +0100 Subject: [PATCH] Rename templates to be more djangonist --- .../musician/locale/ca/LC_MESSAGES/django.po | 38 +++++++++---------- .../musician/locale/es/LC_MESSAGES/django.po | 38 +++++++++---------- .../{addresses.html => address_list.html} | 0 .../{mailboxes.html => mailbox_list.html} | 0 ...ailinglists.html => mailinglist_list.html} | 0 ...m_delete.html => record_check_delete.html} | 0 .../musician/{saas.html => saas_list.html} | 0 orchestra/contrib/musician/views.py | 10 ++--- 8 files changed, 43 insertions(+), 43 deletions(-) rename orchestra/contrib/musician/templates/musician/{addresses.html => address_list.html} (100%) rename orchestra/contrib/musician/templates/musician/{mailboxes.html => mailbox_list.html} (100%) rename orchestra/contrib/musician/templates/musician/{mailinglists.html => mailinglist_list.html} (100%) rename orchestra/contrib/musician/templates/musician/{record_confirm_delete.html => record_check_delete.html} (100%) rename orchestra/contrib/musician/templates/musician/{saas.html => saas_list.html} (100%) diff --git a/orchestra/contrib/musician/locale/ca/LC_MESSAGES/django.po b/orchestra/contrib/musician/locale/ca/LC_MESSAGES/django.po index d41d6697..dc21cc00 100644 --- a/orchestra/contrib/musician/locale/ca/LC_MESSAGES/django.po +++ b/orchestra/contrib/musician/locale/ca/LC_MESSAGES/django.po @@ -160,25 +160,25 @@ msgstr "Cancel·lar" msgid "Save" msgstr "Desar" -#: templates/musician/addresses.html:15 +#: templates/musician/address_list.html:15 msgid "Email" msgstr "Correu electrònic" -#: templates/musician/addresses.html:16 +#: templates/musician/address_list.html:16 msgid "Domain" msgstr "Domini" #. Translators: This message appears on the page title -#: templates/musician/addresses.html:17 templates/musician/mail_base.html:22 +#: templates/musician/address_list.html:17 templates/musician/mail_base.html:22 #: views.py:355 msgid "Mailboxes" msgstr "Bústies de correu" -#: templates/musician/addresses.html:18 +#: templates/musician/address_list.html:18 msgid "Forward" msgstr "Redirecció" -#: templates/musician/addresses.html:38 +#: templates/musician/address_list.html:38 msgid "New mail address" msgstr "Nova adreça de correu" @@ -350,7 +350,7 @@ msgstr "Obre el gestor de bases de dades" #. Translators: database page when there isn't any database. #. Translators: saas page when there isn't any saas. -#: templates/musician/databases.html:58 templates/musician/saas.html:49 +#: templates/musician/databases.html:58 templates/musician/saas_list.html:49 msgid "Ooops! Looks like there is nothing here!" msgstr "Mmmh, sembla que aquí no hi ha res!" @@ -370,15 +370,15 @@ msgstr "Consulta aquí la teva configuració DNS." msgid "Value" msgstr "Valor" -#: templates/musician/mail_base.html:6 templates/musician/mailinglists.html:6 +#: templates/musician/mail_base.html:6 templates/musician/mailinglist_list.html:6 msgid "Go to global" msgstr "Totes les adreces" -#: templates/musician/mail_base.html:10 templates/musician/mailinglists.html:9 +#: templates/musician/mail_base.html:10 templates/musician/mailinglist_list.html:9 msgid "for" msgstr "per a" -#: templates/musician/mail_base.html:18 templates/musician/mailboxes.html:16 +#: templates/musician/mail_base.html:18 templates/musician/mailbox_list.html:16 msgid "Addresses" msgstr "Adreces de correu" @@ -415,27 +415,27 @@ msgstr "" msgid "Close" msgstr "Tancar" -#: templates/musician/mailboxes.html:14 +#: templates/musician/mailbox_list.html:14 msgid "Name" msgstr "Nom" -#: templates/musician/mailboxes.html:15 +#: templates/musician/mailbox_list.html:15 msgid "Filtering" msgstr "Filtrat" -#: templates/musician/mailboxes.html:27 +#: templates/musician/mailbox_list.html:27 msgid "Update password" msgstr "Actualitza la contrasenya" -#: templates/musician/mailboxes.html:43 +#: templates/musician/mailbox_list.html:43 msgid "New mailbox" msgstr "Nova bústia de correu" -#: templates/musician/mailinglists.html:34 +#: templates/musician/mailinglist_list.html:34 msgid "Active" msgstr "Actiu" -#: templates/musician/mailinglists.html:36 +#: templates/musician/mailinglist_list.html:36 msgid "Inactive" msgstr "Inactiu" @@ -463,19 +463,19 @@ msgstr "mètode de pagament:" msgid "Check your last bills" msgstr "Consulta les teves darreres factures" -#: templates/musician/saas.html:18 +#: templates/musician/saas_list.html:18 msgid "Installed on" msgstr "Instal·lat a" -#: templates/musician/saas.html:29 +#: templates/musician/saas_list.html:29 msgid "Service info" msgstr "Informació del servei" -#: templates/musician/saas.html:30 +#: templates/musician/saas_list.html:30 msgid "active" msgstr "actiu" -#: templates/musician/saas.html:37 +#: templates/musician/saas_list.html:37 msgid "Open service admin panel" msgstr "Obre el panell d’administració del servei" diff --git a/orchestra/contrib/musician/locale/es/LC_MESSAGES/django.po b/orchestra/contrib/musician/locale/es/LC_MESSAGES/django.po index 9d8c7960..8f70e1c9 100644 --- a/orchestra/contrib/musician/locale/es/LC_MESSAGES/django.po +++ b/orchestra/contrib/musician/locale/es/LC_MESSAGES/django.po @@ -162,25 +162,25 @@ msgstr "Cancelar" msgid "Save" msgstr "Guardar" -#: templates/musician/addresses.html:15 +#: templates/musician/address_list.html:15 msgid "Email" msgstr "Correo electrónico" -#: templates/musician/addresses.html:16 +#: templates/musician/address_list.html:16 msgid "Domain" msgstr "Dominio" #. Translators: This message appears on the page title -#: templates/musician/addresses.html:17 templates/musician/mail_base.html:22 +#: templates/musician/address_list.html:17 templates/musician/mail_base.html:22 #: views.py:355 msgid "Mailboxes" msgstr "Buzones de correo" -#: templates/musician/addresses.html:18 +#: templates/musician/address_list.html:18 msgid "Forward" msgstr "Redirección" -#: templates/musician/addresses.html:38 +#: templates/musician/address_list.html:38 msgid "New mail address" msgstr "Nueva dirección de correo" @@ -352,7 +352,7 @@ msgstr "Abre el gestor de bases de datos" #. Translators: database page when there isn't any database. #. Translators: saas page when there isn't any saas. -#: templates/musician/databases.html:58 templates/musician/saas.html:49 +#: templates/musician/databases.html:58 templates/musician/saas_list.html:49 msgid "Ooops! Looks like there is nothing here!" msgstr "Mmmh… ¡parece que aquí no hay nada!" @@ -372,15 +372,15 @@ msgstr "Consulta aquí tu configuración DNS." msgid "Value" msgstr "Valor" -#: templates/musician/mail_base.html:6 templates/musician/mailinglists.html:6 +#: templates/musician/mail_base.html:6 templates/musician/mailinglist_list.html:6 msgid "Go to global" msgstr "Todas las direcciones" -#: templates/musician/mail_base.html:10 templates/musician/mailinglists.html:9 +#: templates/musician/mail_base.html:10 templates/musician/mailinglist_list.html:9 msgid "for" msgstr "para" -#: templates/musician/mail_base.html:18 templates/musician/mailboxes.html:16 +#: templates/musician/mail_base.html:18 templates/musician/mailbox_list.html:16 msgid "Addresses" msgstr "Direcciones de correo" @@ -417,27 +417,27 @@ msgstr "" msgid "Close" msgstr "Cerrar" -#: templates/musician/mailboxes.html:14 +#: templates/musician/mailbox_list.html:14 msgid "Name" msgstr "Nombre" -#: templates/musician/mailboxes.html:15 +#: templates/musician/mailbox_list.html:15 msgid "Filtering" msgstr "Filtrado" -#: templates/musician/mailboxes.html:27 +#: templates/musician/mailbox_list.html:27 msgid "Update password" msgstr "Actualiza la contraseña" -#: templates/musician/mailboxes.html:43 +#: templates/musician/mailbox_list.html:43 msgid "New mailbox" msgstr "Nuevo buzón de correo" -#: templates/musician/mailinglists.html:34 +#: templates/musician/mailinglist_list.html:34 msgid "Active" msgstr "Activo" -#: templates/musician/mailinglists.html:36 +#: templates/musician/mailinglist_list.html:36 msgid "Inactive" msgstr "Inactivo" @@ -465,19 +465,19 @@ msgstr "método de pago:" msgid "Check your last bills" msgstr "Consulta tus últimas facturas" -#: templates/musician/saas.html:18 +#: templates/musician/saas_list.html:18 msgid "Installed on" msgstr "Instalado en" -#: templates/musician/saas.html:29 +#: templates/musician/saas_list.html:29 msgid "Service info" msgstr "Información del servicio" -#: templates/musician/saas.html:30 +#: templates/musician/saas_list.html:30 msgid "active" msgstr "activo" -#: templates/musician/saas.html:37 +#: templates/musician/saas_list.html:37 msgid "Open service admin panel" msgstr "Abre el panel de administración del servicio" diff --git a/orchestra/contrib/musician/templates/musician/addresses.html b/orchestra/contrib/musician/templates/musician/address_list.html similarity index 100% rename from orchestra/contrib/musician/templates/musician/addresses.html rename to orchestra/contrib/musician/templates/musician/address_list.html diff --git a/orchestra/contrib/musician/templates/musician/mailboxes.html b/orchestra/contrib/musician/templates/musician/mailbox_list.html similarity index 100% rename from orchestra/contrib/musician/templates/musician/mailboxes.html rename to orchestra/contrib/musician/templates/musician/mailbox_list.html diff --git a/orchestra/contrib/musician/templates/musician/mailinglists.html b/orchestra/contrib/musician/templates/musician/mailinglist_list.html similarity index 100% rename from orchestra/contrib/musician/templates/musician/mailinglists.html rename to orchestra/contrib/musician/templates/musician/mailinglist_list.html diff --git a/orchestra/contrib/musician/templates/musician/record_confirm_delete.html b/orchestra/contrib/musician/templates/musician/record_check_delete.html similarity index 100% rename from orchestra/contrib/musician/templates/musician/record_confirm_delete.html rename to orchestra/contrib/musician/templates/musician/record_check_delete.html diff --git a/orchestra/contrib/musician/templates/musician/saas.html b/orchestra/contrib/musician/templates/musician/saas_list.html similarity index 100% rename from orchestra/contrib/musician/templates/musician/saas.html rename to orchestra/contrib/musician/templates/musician/saas_list.html diff --git a/orchestra/contrib/musician/views.py b/orchestra/contrib/musician/views.py index f2310401..b99a7613 100644 --- a/orchestra/contrib/musician/views.py +++ b/orchestra/contrib/musician/views.py @@ -243,7 +243,7 @@ class BillDownloadView(CustomContextMixin, UserTokenRequiredMixin, View): class AddressListView(ServiceListView): service_class = AddressService model = Address - template_name = "musician/addresses.html" + template_name = "musician/address_list.html" extra_context = { # Translators: This message appears on the page title 'title': _('Mail addresses'), @@ -317,7 +317,7 @@ class AddressDeleteView(CustomContextMixin, UserTokenRequiredMixin, DeleteView): class MailingListsView(ServiceListView): service_class = MailinglistService model = List - template_name = "musician/mailinglists.html" + template_name = "musician/mailinglist_list.html" extra_context = { # Translators: This message appears on the page title 'title': _('Mailing lists'), @@ -348,7 +348,7 @@ class MailingListsView(ServiceListView): class MailboxListView(ServiceListView): service_class = MailboxService model = Mailbox - template_name = "musician/mailboxes.html" + template_name = "musician/mailbox_list.html" extra_context = { # Translators: This message appears on the page title 'title': _('Mailboxes'), @@ -447,7 +447,7 @@ class DatabasesView(ServiceListView): class SaasListView(ServiceListView): service_class = SaasService model = SaaS - template_name = "musician/saas.html" + template_name = "musician/saas_list.html" extra_context = { # Translators: This message appears on the page title 'title': _('Software as a Service'), @@ -496,7 +496,7 @@ class DomainUpdateRecordView(CustomContextMixin, UserTokenRequiredMixin, UpdateV class DomainDeleteRecordView(CustomContextMixin, UserTokenRequiredMixin, DeleteView): model = Record - template_name = "musician/record_confirm_delete.html" + template_name = "musician/record_check_delete.html" pk_url_kwarg = "record_pk" def get_queryset(self):