diff --git a/templates/mailman-django/lists/list_summary.html b/templates/mailman-django/lists/list_summary.html deleted file mode 100644 index 471e9ed..0000000 --- a/templates/mailman-django/lists/list_summary.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "mailman-django/base.html" %} -{% load i18n %} - -{% block heading %} - {{list.list_name}} {{list.real_name}} -{% endblock %} - -{% block header %} -
-
{% trans "About" %}
- {{list.description}} -
-{% endblock %} - -{% block actionButtonsList %} - -{% endblock %} - -{% block smallBoxLeft %} -
-
{% trans "Contact" %}
- {% trans "Contact Owner" %} #TODO -
-{% endblock %} - -{% block smallBoxRight %} -
-
{% trans "Other Lists" %}
- {% trans "View overview of all URL TODO mailing lists" %} -
-{% endblock %} - -{% block footer %} - {% trans "Admin Interface" %} -{% endblock %} diff --git a/views.py b/views.py index ee15cda..3ab833c 100644 --- a/views.py +++ b/views.py @@ -193,7 +193,7 @@ return render_to_response(template, {'error':error},context_instance=RequestContext(request)) #lists by context processor -def list_summary(request,fqdn_listname=None,option=None): +def list_summary(request,fqdn_listname=None,option=None,template='mailman-django/lists/summary.html'): """ PUBLIC an entry page for each lists which allows some simple tasks per LIST @@ -208,7 +208,7 @@ except AttributeError, e: return render_to_response('mailman-django/errors/generic.html', {'error': "REST API not found / Offline"},context_instance=RequestContext(request)) - return render_to_response('mailman-django/lists/list_summary.html', + return render_to_response(template, {'list':current_list, 'message': None, }, @@ -508,4 +508,4 @@ del request.session['member_id'] except KeyError: pass - return list_index(request, template = 'mailman-django/lists/index.html') + return list_index(request)