euscanwww: show maintainer name and email

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary 2011-12-30 11:34:54 +01:00
parent b78e73038d
commit 2bd012ef82
2 changed files with 5 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def herd(request, herd):
@render_to('euscan/maintainers.html') @render_to('euscan/maintainers.html')
def maintainers(request): def maintainers(request):
maintainers = Package.objects.filter(maintainers__isnull=False) 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'), maintainers = maintainers.annotate(n_packaged=Sum('n_packaged'),
n_overlay=Sum('n_overlay'), n_overlay=Sum('n_overlay'),
n_versions=Sum('n_versions')) n_versions=Sum('n_versions'))

View File

@ -20,7 +20,11 @@
<tr> <tr>
<td> <td>
<a href="{% url euscan.views.maintainer maintainer.maintainers__id %}"> <a href="{% url euscan.views.maintainer maintainer.maintainers__id %}">
{% if maintainer.maintainers__name != maintainer.maintainers__email %}
{{ maintainer.maintainers__name }} &lt;{{ maintainer.maintainers__email }}&gt;
{% else %}
{{ maintainer.maintainers__name }} {{ maintainer.maintainers__name }}
{% endif %}
</a> </a>
{% package_bar maintainer %} {% package_bar maintainer %}
</td> </td>