From 2bd012ef82284b660e653b0e925c7020655b08ff Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Fri, 30 Dec 2011 11:34:54 +0100 Subject: [PATCH] euscanwww: show maintainer name and email Signed-off-by: Corentin Chary --- euscanwww/euscan/views.py | 2 +- euscanwww/templates/euscan/maintainers.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/euscanwww/euscan/views.py b/euscanwww/euscan/views.py index 57fb115..d9d3bc0 100644 --- a/euscanwww/euscan/views.py +++ b/euscanwww/euscan/views.py @@ -60,7 +60,7 @@ def herd(request, herd): @render_to('euscan/maintainers.html') def maintainers(request): maintainers = Package.objects.filter(maintainers__isnull=False) - maintainers = maintainers.values('maintainers__id', 'maintainers__name') + maintainers = maintainers.values('maintainers__id', 'maintainers__name', 'maintainers__email') maintainers = maintainers.annotate(n_packaged=Sum('n_packaged'), n_overlay=Sum('n_overlay'), n_versions=Sum('n_versions')) diff --git a/euscanwww/templates/euscan/maintainers.html b/euscanwww/templates/euscan/maintainers.html index bf0171f..c84a5a3 100644 --- a/euscanwww/templates/euscan/maintainers.html +++ b/euscanwww/templates/euscan/maintainers.html @@ -20,7 +20,11 @@ + {% if maintainer.maintainers__name != maintainer.maintainers__email %} + {{ maintainer.maintainers__name }} <{{ maintainer.maintainers__email }}> + {% else %} {{ maintainer.maintainers__name }} + {% endif %} {% package_bar maintainer %}