From 0da5060e6f2462f2547c6c9c4983bad6f3555b1d Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Thu, 21 Oct 2021 17:23:49 +0200 Subject: [PATCH] templates/revision-info: Display author fullname when name is None --- swh/web/templates/includes/revision-info.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/swh/web/templates/includes/revision-info.html b/swh/web/templates/includes/revision-info.html index f71d27529..c237309b0 100644 --- a/swh/web/templates/includes/revision-info.html +++ b/swh/web/templates/includes/revision-info.html @@ -14,7 +14,13 @@ See top-level LICENSE file for more information <a href="{{ snapshot_context.revision_info.revision_url }}"> <b>{{ snapshot_context.revision_id }}</b> </a> - authored by <b>{{ snapshot_context.revision_info.author.name }}</b> + authored by <b> + {% if snapshot_context.revision_info.author.name %} + {{ snapshot_context.revision_info.author.name }} + {% else %} + {{ snapshot_context.revision_info.author.fullname }} + {% endif %} + </b> on <b>{{ snapshot_context.revision_info.date }}</b> <br/> <b>{{ snapshot_context.revision_info.message_header }}</b> -- GitLab