From 5e7aeac3a853a6c4d8a390404a2e03de07681150 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 25 May 2016 16:22:10 +0200 Subject: [PATCH] Improve presentation of authors in Submission header --- submissions/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submissions/models.py b/submissions/models.py index cda0db5dd..8ef6eac1d 100644 --- a/submissions/models.py +++ b/submissions/models.py @@ -88,8 +88,10 @@ class Submission(models.Model): header += '<tr><td>Author(s): </td><td> </td><td>{{ author_list }}</td></tr>' header += '<tr><td>As Contributors: </td><td> </td>' if self.authors.all(): + header += '<td>' for auth in self.authors.all(): - header += '<td><a href="/contributor/' + str(auth.id) + '">' + auth.user.first_name + ' ' + auth.user.last_name + '</a></td>' + header += '<a href="/contributor/' + str(auth.id) + '">' + auth.user.first_name + ' ' + auth.user.last_name + '</a> ' + header += '</td>' else: header += '<td>(none claimed)</td>' header += '</tr>' -- GitLab