diff --git a/src/postorius/templates/postorius/confirm_dialog.html b/src/postorius/templates/postorius/confirm_dialog.html deleted file mode 100644 index 29d7acc..0000000 --- a/src/postorius/templates/postorius/confirm_dialog.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends postorius_base_template %} -{% load url from future %} -{% load i18n %} - -{% block main %} -

{% trans 'Confirm' %}

-

{% trans "Are you sure?" %}

-
{% csrf_token %} - - {% trans "Cancel" %} -
-{% endblock main %} diff --git a/src/postorius/templates/postorius/lists/settings_legacy.html b/src/postorius/templates/postorius/lists/settings_legacy.html deleted file mode 100644 index 5998cbb..0000000 --- a/src/postorius/templates/postorius/lists/settings_legacy.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends postorius_base_template %} -{% load url from future %} -{% load i18n %} -{% load nav_helpers %} - -{% block main %} - {% if message %}

{{ message }}

{% endif %} - {% list_nav 'list_settings' 'Settings' %} - - - {% if visible_section %} - - - {% csrf_token %} - {% for field in form %} - - {% endfor %} - - -
- {{ field.errors }} - {{ field.label_tag }}
- [{% trans "More info" %}{{ field.help_text }} - ] -
{{ field }}
- -
- {% endif %} - -{% endblock %} diff --git a/src/postorius/templates/postorius/lists/subscribe.html b/src/postorius/templates/postorius/lists/subscribe.html deleted file mode 100644 index 4d1f763..0000000 --- a/src/postorius/templates/postorius/lists/subscribe.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends postorius_base_template %} -{% load url from future %} -{% load i18n %} - -{% block subtitle %} -{% trans "Subscribe | " as page_title %}{{ page_title|add:list.fqdn_listname }} -{% endblock %} - -{% block main %} -

{% trans 'Subscribe' %} {{ list.fqdn_listname}}

-
{% csrf_token %} - {{form.as_p}} - -
-{% endblock main %} diff --git a/src/postorius/templates/postorius/lists/unsubscribe.html b/src/postorius/templates/postorius/lists/unsubscribe.html deleted file mode 100644 index dfd709a..0000000 --- a/src/postorius/templates/postorius/lists/unsubscribe.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends postorius_base_template %} -{% load url from future %} -{% load i18n %} - -{% block subtitle %} -{% trans "Confirm List Delete" as page_title %}{{ page_title|add:list.fqdn_listname}} -{% endblock %} - -{% block main %} -

{% trans 'Delete List' %} {{ list.fqdn_listname}}

-

{% trans 'Are you sure you want to delete' %} {{ list.fqdn_listname }}?

-{% endblock main %} diff --git a/src/postorius/templates/postorius/menu/general.html b/src/postorius/templates/postorius/menu/general.html deleted file mode 100644 index 0677cd6..0000000 --- a/src/postorius/templates/postorius/menu/general.html +++ /dev/null @@ -1,113 +0,0 @@ -{% load url from future %} -{% load i18n %} - -{% block menu_general %} - {% trans "General" %} - -{% endblock%} diff --git a/src/postorius/templates/postorius/menu/info.html b/src/postorius/templates/postorius/menu/info.html deleted file mode 100644 index c019b84..0000000 --- a/src/postorius/templates/postorius/menu/info.html +++ /dev/null @@ -1,52 +0,0 @@ -{% load url from future %} -{% load i18n %} - -{% block menu_info %} - {% trans "Info" %} -
-{% endblock%} diff --git a/src/postorius/templates/postorius/menu/maintanance.html b/src/postorius/templates/postorius/menu/maintanance.html deleted file mode 100644 index 8cedccf..0000000 --- a/src/postorius/templates/postorius/menu/maintanance.html +++ /dev/null @@ -1,84 +0,0 @@ -{% load url from future %} -{% load i18n %} - -{% block menu_maintanance %} -{% if fqdn_listname %} - {% trans "Maintanance" %} -
-{% endif %} -{% endblock%} diff --git a/src/postorius/templates/postorius/menu/mm_user_nav.html b/src/postorius/templates/postorius/menu/mm_user_nav.html deleted file mode 100644 index f91a820..0000000 --- a/src/postorius/templates/postorius/menu/mm_user_nav.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load url from future %} -{% load i18n %} -{% load nav_helpers %} -
- -
diff --git a/src/postorius/templates/postorius/menu/user_options.html b/src/postorius/templates/postorius/menu/user_options.html deleted file mode 100644 index ef5a22c..0000000 --- a/src/postorius/templates/postorius/menu/user_options.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load url from future %} -{% load i18n %} - -{% block menu_user_options %} - {% trans "User Options" %} -
-{% endblock %} diff --git a/src/postorius/templates/postorius/menu/users_nav.html b/src/postorius/templates/postorius/menu/users_nav.html deleted file mode 100644 index 2db6455..0000000 --- a/src/postorius/templates/postorius/menu/users_nav.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load url from future %} -{% load i18n %} -{% load nav_helpers %} -
- {% trans 'Users' %} » {{ title }} - -
diff --git a/src/postorius/templates/postorius/user_settings.html b/src/postorius/templates/postorius/user_settings.html deleted file mode 100644 index e982710..0000000 --- a/src/postorius/templates/postorius/user_settings.html +++ /dev/null @@ -1,57 +0,0 @@ -{% extends postorius_base_template %} -{% load url from future %} -{% load i18n %} - -{% block subtitle %} -{% trans "User Settings | " as page_title %}{{ page_title|add:list.fqdn_listname}} -{% endblock %} - -{% block main %} - {% include 'postorius/menu/user_nav.html' %} -

{% trans "Membership" %}

- {% ifequal tab "membership"%} - {% trans "Membership Settings" %} - {% if list %}{% trans "for"%}{% endif %} {{ list.fqdn_listname }} - {% else %} - {% trans "User Settings" %} - {% endifequal %} - -
-
- {% trans "Content" %} -
-

{% trans "Use this page to manage your account. You'll be able to see a list of your subscribed lists, modify these membership settings of the list and your personal preferences in user_settings LP:821438 is solved
" %}

- {% if form %} -
{% csrf_token %} - -
- {% endif %} -
- - - - {% if membership_lists %} - {% for list in membership_lists %} -
-
- - {{ list.display_name }} {% if not list.settings.advertised %}(non-public){% endif %} - -
- -
- {% endfor %} - {% endif %} -{% endblock %} diff --git a/src/postorius/templates/postorius/user_tasks.html b/src/postorius/templates/postorius/user_tasks.html deleted file mode 100644 index e3fb93e..0000000 --- a/src/postorius/templates/postorius/user_tasks.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends postorius_base_template %} -{% load url from future %} -{% load i18n %} - -{% block subtitle %} -{% trans "To Do" as page_title %}{{ page_title }} -{% endblock %} - -{% block main %} -

{% trans "To Do" %}

-

{% trans "There are no pending tasks at the present time." %}

-{% endblock main %} diff --git a/src/postorius/templatetags/nav_helpers.py b/src/postorius/templatetags/nav_helpers.py index 5ca23c3..440ab91 100644 --- a/src/postorius/templatetags/nav_helpers.py +++ b/src/postorius/templatetags/nav_helpers.py @@ -33,25 +33,6 @@ title=title) -@register.inclusion_tag('postorius/menu/mm_user_nav.html', takes_context=True) -def user_nav(context, current, title=None): - if title is None: - title = '' - return dict(mm_user=context['mm_user'], - current=current, - user=context['request'].user, - title=title) - - -@register.inclusion_tag('postorius/menu/users_nav.html', takes_context=True) -def users_nav(context, current, title=None): - if title is None: - title = '' - return dict(current=current, - user=context['request'].user, - title=title) - - @register.simple_tag def page_url(view_name, *args, **kwargs): return reverse(view_name, *args, **kwargs)