From b8ab9dbd6d8f9ea520cd9bf593bf001c58c96fcd Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Tue, 5 Apr 2016 16:49:49 +0200 Subject: [PATCH] Small presentation improvements --- commentaries/models.py | 4 +++- scipost/templates/scipost/contributor_info.html | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/commentaries/models.py b/commentaries/models.py index bcb6b0f00..e3abc2c94 100644 --- a/commentaries/models.py +++ b/commentaries/models.py @@ -47,8 +47,10 @@ class Commentary(models.Model): header += '<tr><td>Author(s): </td><td> </td><td>' + self.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>' diff --git a/scipost/templates/scipost/contributor_info.html b/scipost/templates/scipost/contributor_info.html index adeb92f8d..c4aa1e918 100644 --- a/scipost/templates/scipost/contributor_info.html +++ b/scipost/templates/scipost/contributor_info.html @@ -32,11 +32,7 @@ <div class="flex-greybox"> <h1>Contributor info</h1> </div> - <div class="row"> - <div class="col-6"> - {{ contributor.public_info_as_table|safe }} - </div> - </div> + {{ contributor.public_info_as_table|safe }} </section> {% if contributor_submissions %} -- GitLab