euscanwww: show maintainer name and email
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
b78e73038d
commit
2bd012ef82
@ -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'))
|
||||||
|
@ -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 }} <{{ maintainer.maintainers__email }}>
|
||||||
|
{% else %}
|
||||||
{{ maintainer.maintainers__name }}
|
{{ maintainer.maintainers__name }}
|
||||||
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% package_bar maintainer %}
|
{% package_bar maintainer %}
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user