mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 228e56ddb6152dd1e302e50fde9fdb17f26ba6bf
parent e40fe7f011c0e49d519b8cf34b507378116e8565
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Mon, 28 Jun 2021 22:26:09 +0200

unify committer name style

show as a mailto link like everywhere else

Diffstat:
Mtemplates/commit.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/commit.html b/templates/commit.html @@ -8,10 +8,10 @@ <b>Parent:</b> <a href="/{{repo|repo_name|urlencode_strict}}/commit/{{parent_id}}" class="commit-hash">{{parent_id}}</a> (<a href="/{{repo|repo_name|urlencode_strict}}/tree/{{parent_id}}">tree</a>) <br> {% endfor %} - <b>Author:</b> {{commit.author().name().unwrap()}} &lt;<a href="mailto:{{commit.author().email().unwrap()}}">{{commit.author().email().unwrap()}}</a>&gt; + <b>Author:</b> {{commit.author()|signature_email_link|safe}} <br> {% if commit.author().name() != commit.committer().name() || commit.author().email() != commit.committer().email() %} - <b>Committer:</b> {{commit.committer().name().unwrap()}} &lt;<a href="mailto:{{commit.committer().email().unwrap()}}">{{commit.committer().email().unwrap()}}</a>&gt; + <b>Committer:</b> {{commit.committer()|signature_email_link|safe}} <br> {% endif %} <b>Date:</b> {{commit.time()|format_datetime("%c %z")}}