aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/new_form.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-09-03 10:33:34 +0100
committerGitHub <noreply@github.com>2022-09-03 10:33:34 +0100
commitde7b87fbc238e0685c01cb26a580b3d21cee623a (patch)
treeb2bc27a5e219853c8e53ed0a6f2abf23b02aede4 /templates/repo/issue/new_form.tmpl
parent18046eb91e21e03d475f3990e59516b46b6f67e2 (diff)
downloadgitea-de7b87fbc238e0685c01cb26a580b3d21cee623a.tar.gz
gitea-de7b87fbc238e0685c01cb26a580b3d21cee623a.zip
Do not add links to Posters or Assignees with ID < 0 (#20577)
There are several places in templates/repo/issue/view_content/comments.tmpl where links are made to Posters or Assignees who are Ghosts or have IDs <0. Fix #20559 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/repo/issue/new_form.tmpl')
-rw-r--r--templates/repo/issue/new_form.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl
index 91a523a1e2..ed1fd4778f 100644
--- a/templates/repo/issue/new_form.tmpl
+++ b/templates/repo/issue/new_form.tmpl
@@ -8,9 +8,7 @@
<div class="twelve wide column">
<div class="ui comments">
<div class="comment">
- <a class="avatar" href="{{.SignedUser.HomeLink}}">
- {{avatar .SignedUser}}
- </a>
+ {{template "shared/user/avatarlink" .SignedUser}}
<div class="ui segment content">
<div class="field">
<input name="title" id="issue_title" placeholder="{{.locale.Tr "repo.milestones.title"}}" value="{{if .TitleQuery}}{{.TitleQuery}}{{else if .IssueTemplateTitle}}{{.IssueTemplateTitle}}{{else}}{{.title}}{{end}}" tabindex="3" autofocus required maxlength="255" autocomplete="off">