Skip to content
Snippets Groups Projects
Commit 0da5060e authored by Antoine Lambert's avatar Antoine Lambert
Browse files

templates/revision-info: Display author fullname when name is None

parent a8cfc14b
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
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