SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 5e7aeac3 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Improve presentation of authors in Submission header

parent d6d30655
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,10 @@ class Submission(models.Model):
header += '<tr><td>Author(s): </td><td>&nbsp;</td><td>{{ author_list }}</td></tr>'
header += '<tr><td>As Contributors: </td><td>&nbsp;</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>&nbsp;&nbsp;'
header += '</td>'
else:
header += '<td>(none claimed)</td>'
header += '</tr>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment