diff --git a/.bzrignore b/.bzrignore index d67192d..a41572f 100644 --- a/.bzrignore +++ b/.bzrignore @@ -1,2 +1,3 @@ dev_setup/mmtest.db dev_setup/settings_local.py +src/postorius.egg-info diff --git a/dev_setup/urls.py b/dev_setup/urls.py index de87e62..a1a5e9f 100644 --- a/dev_setup/urls.py +++ b/dev_setup/urls.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see . -import mailmanweb +import postorius from django.conf.urls.defaults import * from django.conf import settings @@ -32,7 +32,7 @@ # from mailman_django import urls as mailman_urls urlpatterns = patterns('', - url(r'^$', 'mailmanweb.views.list_index'), - (r'^mailmanweb/', include('mailmanweb.urls')), + url(r'^$', 'postorius.views.list_index'), + (r'^postorius/', include('postorius.urls')), url(r'', include('social_auth.urls')), ) diff --git a/src/postorius/context_processors.py b/src/postorius/context_processors.py index f94516d..ce1baeb 100644 --- a/src/postorius/context_processors.py +++ b/src/postorius/context_processors.py @@ -10,14 +10,14 @@ logger = logging.getLogger(__name__) -def mailmanweb(request): +def postorius(request): """Add template variables to context. """ # extend_template (no page header/footer when requested via AJAX) if request.is_ajax(): - extend_template = "mailmanweb/base_ajax.html" + extend_template = "postorius/base_ajax.html" else: - extend_template = "mailmanweb/base.html" + extend_template = "postorius/base.html" return { 'MAILMAN_THEME': settings.MAILMAN_THEME, diff --git a/src/postorius/templates/postorius/base.html b/src/postorius/templates/postorius/base.html index 00c55b7..645e280 100644 --- a/src/postorius/templates/postorius/base.html +++ b/src/postorius/templates/postorius/base.html @@ -8,12 +8,12 @@ - - + + - - - + + + @@ -21,7 +21,7 @@
- +
  • Lists
  • {% if user.is_superuser %} @@ -51,10 +51,10 @@ {% block footer %}{% endblock footer %}
- - - - + + + + {% block additionaljs %}{% endblock %} diff --git a/src/postorius/templates/postorius/domain_index.html b/src/postorius/templates/postorius/domain_index.html index 6f265c7..9c2f5c5 100644 --- a/src/postorius/templates/postorius/domain_index.html +++ b/src/postorius/templates/postorius/domain_index.html @@ -1,8 +1,8 @@ -{% extends "mailmanweb/base.html" %} +{% extends "postorius/base.html" %} {% load i18n %} {% block main %} - {% include 'mailmanweb/menu/settings_nav.html' %} + {% include 'postorius/menu/settings_nav.html' %}

{% trans "Domain Index" %}

diff --git a/src/postorius/templates/postorius/domain_new.html b/src/postorius/templates/postorius/domain_new.html index 331d299..d9c8e8e 100644 --- a/src/postorius/templates/postorius/domain_new.html +++ b/src/postorius/templates/postorius/domain_new.html @@ -2,7 +2,7 @@ {% load i18n %} {% block main %} - {% include 'mailmanweb/menu/settings_nav.html' %} + {% include 'postorius/menu/settings_nav.html' %}

{% trans "Add a new Domain" %}

{{ form.as_p }} diff --git a/src/postorius/templates/postorius/errors/generic.html b/src/postorius/templates/postorius/errors/generic.html index 774c8b3..446deba 100644 --- a/src/postorius/templates/postorius/errors/generic.html +++ b/src/postorius/templates/postorius/errors/generic.html @@ -1,4 +1,4 @@ -{% extends "mailmanweb/base.html" %} +{% extends "postorius/base.html" %} {% load i18n %} {% block header %} diff --git a/src/postorius/templates/postorius/lists/held_messages.html b/src/postorius/templates/postorius/lists/held_messages.html index ba1698b..5220207 100644 --- a/src/postorius/templates/postorius/lists/held_messages.html +++ b/src/postorius/templates/postorius/lists/held_messages.html @@ -1,10 +1,10 @@ -{% extends "mailmanweb/base.html" %} +{% extends "postorius/base.html" %} {% load i18n %} {% block body_class %}list_summary{% endblock %} {% block main %} - {% include 'mailmanweb/menu/list_nav.html' %} + {% include 'postorius/menu/list_nav.html' %}

{{list.display_name}}

diff --git a/src/postorius/templates/postorius/lists/index.html b/src/postorius/templates/postorius/lists/index.html index e108b6a..99561c4 100644 --- a/src/postorius/templates/postorius/lists/index.html +++ b/src/postorius/templates/postorius/lists/index.html @@ -1,4 +1,4 @@ -{% extends "mailmanweb/base.html" %} +{% extends "postorius/base.html" %} {% load i18n %} {% block main %} diff --git a/src/postorius/templates/postorius/lists/mass_subscribe.html b/src/postorius/templates/postorius/lists/mass_subscribe.html index ba76647..e32359a 100644 --- a/src/postorius/templates/postorius/lists/mass_subscribe.html +++ b/src/postorius/templates/postorius/lists/mass_subscribe.html @@ -1,9 +1,9 @@ -{% extends "mailmanweb/base.html" %} +{% extends "postorius/base.html" %} {% load i18n %} {% block main %} {% if user.is_superuser %} - {% include 'mailmanweb/menu/list_nav.html' %} + {% include 'postorius/menu/list_nav.html' %} {% endif %}

{% trans "Mass Subscribe" %} - {{list.fqdn_listname}}

diff --git a/src/postorius/templates/postorius/lists/metrics.html b/src/postorius/templates/postorius/lists/metrics.html index c66c1bb..082cc31 100644 --- a/src/postorius/templates/postorius/lists/metrics.html +++ b/src/postorius/templates/postorius/lists/metrics.html @@ -1,9 +1,9 @@ -{% extends "mailmanweb/base.html" %} +{% extends "postorius/base.html" %} {% load i18n %} {% block main %} {% if user.is_superuser %} - {% include 'mailmanweb/menu/list_nav.html' %} + {% include 'postorius/menu/list_nav.html' %} {% endif %}

{% trans "List metrics" %}: {{list.fqdn_listname}}

diff --git a/src/postorius/templates/postorius/lists/settings.html b/src/postorius/templates/postorius/lists/settings.html index 115f4d2..fa43ffa 100644 --- a/src/postorius/templates/postorius/lists/settings.html +++ b/src/postorius/templates/postorius/lists/settings.html @@ -2,7 +2,7 @@ {% load i18n %} {% block main %} - {% include 'mailmanweb/menu/list_nav.html' %} + {% include 'postorius/menu/list_nav.html' %}

{{list.real_name}} - {{list.fqdn_listname}}