diff --git a/templates/mailman-django/domains.html b/templates/mailman-django/domains.html index e2aae22..346b6ba 100644 --- a/templates/mailman-django/domains.html +++ b/templates/mailman-django/domains.html @@ -5,37 +5,43 @@ {% trans "Add a new Domain" %} {% endblock %} +{% block smallBoxLeft %} + {% for domain in domains %} +
+
{{ domain.contact_address }}
+ +
+ {% endfor %} +{% endblock %} + {% block header %}
{% trans "About" %}
-

{% trans "Logout" %}

- - - - - - - {% if domains %} - {% for domain in domains %} - - - - - - {% endfor %} - {% endif %} -
{% trans "Domain" %}{% trans "Contact Address" %}{% trans "Description" %}
{{ domain.base_url }}{{ domain.contact_address }} - {% if domain.description %} - {{ domain.description }} - {% endif %} -
+ This site allows to register a new Domain, due to restriction in the REST API we can't delete them here yet. Please modify the Mailman DB directly if you need to remove a Domain. If interested take a look at the Launchapd Bug Report +

+
{% endblock %} {% block actionButtonsList %} - TODO JS Form -
+ + {% endblock %} diff --git a/templates/mailman-django/index.html b/templates/mailman-django/index.html deleted file mode 100644 index 0b6c6fa..0000000 --- a/templates/mailman-django/index.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "mailman-django/base.html" %} -{% load i18n %} - -{% block content %} - -{% endblock %} diff --git a/views.py b/views.py index c4af098..c540bd9 100644 --- a/views.py +++ b/views.py @@ -82,7 +82,6 @@ def domains(request, template = 'mailman-django/domains.html'): message="" error="" - raise Exception("DOMAIN TODO")#todo if request.method == 'POST': form = DomainNew(request.POST) existing_domains = None @@ -495,7 +494,7 @@ 'member': member} ,context_instance=RequestContext(request)) -def logout(request,action="login"): +def logout(request): """ Let the user logout. Some functions requires the user to be logged in to perform the