From 5154866b7e768d9b0b4181d8fe3f4181cddbbc65 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Thu, 6 Jul 2023 14:00:13 +0200 Subject: [PATCH] link prod page submitters to contributor / email --- .../_productionstream_details_summary_contents.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scipost_django/production/templates/production/_productionstream_details_summary_contents.html b/scipost_django/production/templates/production/_productionstream_details_summary_contents.html index dad924614..7239595fc 100644 --- a/scipost_django/production/templates/production/_productionstream_details_summary_contents.html +++ b/scipost_django/production/templates/production/_productionstream_details_summary_contents.html @@ -64,12 +64,11 @@ <small class="text-muted">Submitter</small> <br> {% if productionstream.submission.submitted_by.profile.email %} - <a href="mailto:{{ productionstream.submission.submitted_by.profile.email }}?body=Dear%20{{ productionstream.submission.submitted_by.formal_str }},%0A%0A"> - {{ productionstream.submission.submitted_by.formal_str }} - </a> - {% else %} - {{ productionstream.submission.submitted_by.formal_str }} + <a href="mailto:{{ productionstream.submission.submitted_by.profile.email }}?body=Dear%20{{ productionstream.submission.submitted_by.formal_str }},%0A%0A" + class="text-primary"><span style="pointer-events: none;">{% include 'bi/pencil-square.html' %}</span></a> + {% endif %} + <a href="{% url 'scipost:contributor_info' productionstream.submission.submitted_by.id %}">{{ productionstream.submission.submitted_by.formal_str }}</a> </div> <div class="col-auto"> -- GitLab