commit 73b77281f235b52c0f31cc67bcee03945802f445 parent 3b27d08486c172c171bad8c6a8c86fdddf372113 Author: Shimmy Xu <shimmy.xu@shimmy1996.com> Date: Sat, 4 Jan 2020 21:44:54 -0600 Also display truncated email hash Diffstat:
M | layouts/partials/list_comment.html | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html @@ -5,13 +5,14 @@ <hr/> <div id="{{ $hash }}"> <b>{{ or .name (i18n "hyperskip-name-default") }}</b> - <a href="#{{ $hash }}">#{{ $hash }}</a> + <code>{{ .email_hash | last 10 -}}</code> <span style="float:right;"> - {{- $timestamp -}} - [ <a href="#comment" onclick="reply({{ $hash }})"> + <a href="#{{ $hash }}">#{{ $hash }}</a> [ <a href="#comment" onclick="reply({{ $hash }})"> {{- i18n "hyperskip-reply" -}} </a> ] </span> + <br/> + {{ $timestamp }} <div style="margin-top:1em;">{{ .content | htmlEscape | markdownify }}</div> </div> {{ end }}