From fd6df8c4b07e4b560a65d3f391dd1a442c1dbf44 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Wed, 4 Dec 2019 12:37:35 +0100 Subject: [PATCH] Code styles of mailing list view. --- musician/models.py | 3 ++- musician/templates/musician/mailinglists.html | 17 ++++++++++++----- musician/views.py | 1 + 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/musician/models.py b/musician/models.py index 7544360..5b61e16 100644 --- a/musician/models.py +++ b/musician/models.py @@ -146,7 +146,8 @@ class MailService(OrchestraModel): class MailinglistService(OrchestraModel): api_name = 'mailinglist' - verbose_name = 'Mailing list' + verbose_name = _('Mailing list') + description = _('Litle description of what to be expected in this section to aid the user. Even a link to more help if there is one available.') fields = ('name', 'status', 'address_name', 'admin_email', 'configure') param_defaults = { 'name': None, diff --git a/musician/templates/musician/mailinglists.html b/musician/templates/musician/mailinglists.html index 031c33e..e24ea7a 100644 --- a/musician/templates/musician/mailinglists.html +++ b/musician/templates/musician/mailinglists.html @@ -3,10 +3,17 @@ {% block content %} -

Mailing lists

-

Little description of what to be expected...

+

{{ service.verbose_name }}

+

{{ service.description }}

- +
+ + + + + + + @@ -20,8 +27,8 @@ {% for resource in object_list %} - - + + diff --git a/musician/views.py b/musician/views.py index 632f8ea..4f981e2 100644 --- a/musician/views.py +++ b/musician/views.py @@ -109,6 +109,7 @@ class MailView(ServiceListView): class MailingListsView(ServiceListView): service_class = MailinglistService + template_name = "musician/mailinglists.html" class DatabasesView(ServiceListView):
Name
{{ resource.name }}{{ resource.status }}{{ resource.address_name}}@{{ resource.address_domain.name }}{{ resource.status|capfirst }}{{ resource.address_name}} {{ resource.admin_email }} Mailtrain