From 60ea9fb1360733034f3ce77c61ed31cf8ed97b2a Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Thu, 5 Oct 2023 12:09:49 +0200 Subject: [PATCH] add profile link and email to fellowship details --- .../colleges/templates/colleges/fellowship_detail.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scipost_django/colleges/templates/colleges/fellowship_detail.html b/scipost_django/colleges/templates/colleges/fellowship_detail.html index 64e414194..b60965639 100644 --- a/scipost_django/colleges/templates/colleges/fellowship_detail.html +++ b/scipost_django/colleges/templates/colleges/fellowship_detail.html @@ -26,8 +26,16 @@ </tr> <tr> <th>Fellow</th> - <td>{{ fellowship }}</td> + <td><a href="{{ fellowship.contributor.profile.get_absolute_url }}">{{ fellowship.contributor }}</a></td> </tr> + {% if "edadmin" in user_roles %} + <tr> + <th>Primary email</th> + <td><a href="mailto:{{ fellowship.contributor.profile.email }}?body=Dear%20{{ fellowship.contributor.formal_str }},%0A%0A" + class="text-primary">{{ fellowship.contributor.profile.email }}</a> + </td> + </tr> + {% endif %} <tr> <th>Academic field</th> <td>{{ fellowship.contributor.profile.acad_field }}</td> -- GitLab