From 720c687941d70f87b0622d9fbcde34db145f2ee1 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Wed, 15 Nov 2023 12:03:36 +0100 Subject: [PATCH] make fellow workload only visible for edadmin --- .../submissions/pool/_hx_submission_fellow_row.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scipost_django/submissions/templates/submissions/pool/_hx_submission_fellow_row.html b/scipost_django/submissions/templates/submissions/pool/_hx_submission_fellow_row.html index 1169b7fd9..45540f802 100644 --- a/scipost_django/submissions/templates/submissions/pool/_hx_submission_fellow_row.html +++ b/scipost_django/submissions/templates/submissions/pool/_hx_submission_fellow_row.html @@ -17,9 +17,13 @@ {% endif %} </td> - <td> - {% include "icons/reception.html" with value=fellowship.contributor.editorial_assignments.ongoing.count max=4 %} - </td> + + {% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %} + <td> + {% include "icons/reception.html" with value=fellowship.contributor.editorial_assignments.ongoing.count max=4 %} + </td> + {% endif %} + <td>{% get_fellow_qualification_expertise_level_display submission fellowship %}</td> {% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %} @@ -68,6 +72,7 @@ </tr> {% endfor %} + </tbody> </table> {% else %} -- GitLab