summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff/comments.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/diff/comments.tmpl')
-rw-r--r--templates/repo/diff/comments.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl
index 0cc7853378..5d298f820c 100644
--- a/templates/repo/diff/comments.tmpl
+++ b/templates/repo/diff/comments.tmpl
@@ -5,9 +5,7 @@
{{if .OriginalAuthor}}
<span class="avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span>
{{else}}
- <a class="avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
- {{avatar .Poster}}
- </a>
+ {{template "shared/user/avatarlink" .Poster}}
{{end}}
<div class="content comment-container">
<div class="ui top attached header comment-header df ac sb">
@@ -27,9 +25,7 @@
</span>
{{else}}
<span class="text grey">
- <a {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
- {{.Poster.GetDisplayName}}
- </a>
+ {{template "shared/user/namelink" .Poster}}
{{$.root.locale.Tr "repo.issues.commented_at" (.HashTag|Escape) $createdStr | Safe}}
</span>
{{end}}