diff --git a/src/mailmanweb/templates/mailmanweb/lists/metrics.html b/src/mailmanweb/templates/mailmanweb/lists/metrics.html
new file mode 100644
index 0000000..c66c1bb
--- /dev/null
+++ b/src/mailmanweb/templates/mailmanweb/lists/metrics.html
@@ -0,0 +1,17 @@
+{% extends "mailmanweb/base.html" %}
+{% load i18n %}
+
+{% block main %}
+ {% if user.is_superuser %}
+ {% include 'mailmanweb/menu/list_nav.html' %}
+ {% endif %}
+
+
{% trans "List metrics" %}: {{list.fqdn_listname}}
+
+ {% trans "List created at" %}: {{list.settings.created_at}}
+ {% trans "Last post at" %}: {{list.settings.last_post_at}}
+ {% trans "Digest last sent at" %}: {{list.settings.digest_last_sent_at}}
+ {% trans "Digest Volume" %}: {{list.settings.volume}}
+
+
+{% endblock main %}
diff --git a/src/mailmanweb/templates/mailmanweb/lists/settings.html b/src/mailmanweb/templates/mailmanweb/lists/settings.html
index 6d3ed7e..7da865a 100644
--- a/src/mailmanweb/templates/mailmanweb/lists/settings.html
+++ b/src/mailmanweb/templates/mailmanweb/lists/settings.html
@@ -5,6 +5,7 @@
{% include 'mailmanweb/menu/list_nav.html' %}
{{list.real_name}} - {{list.fqdn_listname}}
+ {{list.settings}}
{% for section in form_sections %}
- {{section.0}}
diff --git a/src/mailmanweb/templates/mailmanweb/lists/summary.html b/src/mailmanweb/templates/mailmanweb/lists/summary.html
index fdff9f0..2fdf8ba 100644
--- a/src/mailmanweb/templates/mailmanweb/lists/summary.html
+++ b/src/mailmanweb/templates/mailmanweb/lists/summary.html
@@ -7,10 +7,22 @@
{% endif %}
{{list.real_name}}
- {{ list.settings.description }}
+ {{list.settings.description }}
-
-
-
+
{% trans "Subscribe / Join this list" %}
+
+
+ {% trans "Unsubscribe / Leave this list" %}
+
+
+ {% trans "Edit list options" %}
+
{% endblock %}
diff --git a/src/mailmanweb/templates/mailmanweb/menu/list_nav.html b/src/mailmanweb/templates/mailmanweb/menu/list_nav.html
index 299acf2..71774c3 100644
--- a/src/mailmanweb/templates/mailmanweb/menu/list_nav.html
+++ b/src/mailmanweb/templates/mailmanweb/menu/list_nav.html
@@ -1,6 +1,8 @@
{% load i18n %}
- {% trans "Info" %}
+ - {% trans "List Metrics" %}
+ - {% trans "Settings" %}
- {% trans "Settings" %}
- {% trans "Mass Subscribe" %}
- {% trans "Delete List" %}
diff --git a/src/mailmanweb/urls.py b/src/mailmanweb/urls.py
index 685bc51..657ff39 100644
--- a/src/mailmanweb/urls.py
+++ b/src/mailmanweb/urls.py
@@ -31,6 +31,8 @@
url(r'^domains/new/$', 'domain_new', name='domain_new'),
url(r'^lists/$', 'list_index', name='list_index'),
url(r'^lists/new/$', 'list_new', name='list_new'),
+ url(r'^lists/(?P[^/]+)/$', 'list_metrics',
+ name='list_metrics'),
url(r'^lists/(?P[^/]+)/$', 'list_summary',
name='list_summary'),
url(r'^lists/(?P[^/]+)/subscribe$',
diff --git a/src/mailmanweb/views.py b/src/mailmanweb/views.py
index 20ae289..967cf24 100644
--- a/src/mailmanweb/views.py
+++ b/src/mailmanweb/views.py
@@ -160,6 +160,34 @@
'lists': lists,},
context_instance=RequestContext(request))
+def list_metrics(request,fqdn_listname=None,option=None,template='mailmanweb/lists/metrics.html'):
+ """
+ PUBLIC
+ an entry page for each list which displays additional (non-editable)
+ information about the list such as the date of the last post and the
+ time the last digest is sent.
+ """
+ error=None
+ user_is_subscribed = False
+ if request.method == 'POST':
+ return redirect("list_summary", fqdn_listname=request.POST["list"])
+ else:
+ try:
+ the_list = List.objects.get_or_404(fqdn_listname=fqdn_listname)
+ try:
+ the_list.get_member(request.user.username)
+ user_is_subscribed = True
+ except:
+ pass #init
+ except MailmanApiError:
+ return render_api_error(request)
+ return render_to_response(template,
+ {'list':the_list,
+ 'message': None,
+ 'user_is_subscribed':user_is_subscribed,
+ },
+ context_instance=RequestContext(request)
+ )
def list_summary(request, fqdn_listname, option=None ,template='mailmanweb/lists/summary.html'):
"""
PUBLIC