mygit

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

commit bfd04934fdae326bccf7c4cb36537bc9bf08853e
parent 18b37ed9ef5836f542d4a74fb28687b177152047
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Mon, 28 Jun 2021 20:36:29 +0200

simplify template by using filters

Diffstat:
Mtemplates/log.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/log.html b/templates/log.html @@ -12,7 +12,7 @@ <td><a href="/{{repo|repo_name|urlencode_strict}}/commit/{{commit.id()}}" class="commit-hash">{{commit.id().to_string()[..7]}}</a></td> {% let summary = commit.summary().unwrap_or("")|truncate(72) %} <td class="commit-summary">{{summary}}</td> - <td class="commit-author-email"><a href="mailto:{{commit.author().email().unwrap_or("")}}">{{commit.author().name().unwrap_or(commit.author().email().unwrap_or(""))}}</a></td> + <td class="commit-author-email">{{commit.author()|signature_email_link|safe}}</td> <td class="commit-date">{{commit.time()|format_datetime("%Y-%m-%d")}}</td> </tr> {% endfor %}