summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/milestone_issues.tmpl
diff options
context:
space:
mode:
authoroscar.lofwenhamn <44643697+oscarlofwenhamn@users.noreply.github.com>2019-03-27 23:22:39 +0100
committertechknowlogick <matti@mdranta.net>2019-03-27 18:22:39 -0400
commit2019983e77895b4e41724bfa3297f5dd730ff37d (patch)
tree92d6d24812cd150f34d44425551d51bd1a9cc815 /templates/repo/issue/milestone_issues.tmpl
parentee0d3eeadc7d563e4ffe87d51becf5a2e6be4e69 (diff)
downloadgitea-2019983e77895b4e41724bfa3297f5dd730ff37d.tar.gz
gitea-2019983e77895b4e41724bfa3297f5dd730ff37d.zip
Make "Ghost" not link to 404 page (#6410)
* Make Ghost not link to 404 page * Make correct localization label show * Create and use GetLastEventLabelFake for when a Ghost user has made the action, thus not linking to a user profile * Add corresponding _fake entries to locale_en-US * Make Ghost avatar not link to 404 page * Make Ghost on milestone_issues not link to 404 page
Diffstat (limited to 'templates/repo/issue/milestone_issues.tmpl')
-rw-r--r--templates/repo/issue/milestone_issues.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl
index f2298dfdab..c81f6adf8b 100644
--- a/templates/repo/issue/milestone_issues.tmpl
+++ b/templates/repo/issue/milestone_issues.tmpl
@@ -203,7 +203,11 @@
{{end}}
<p class="desc">
- {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}}
+ {{if gt .Poster.ID 0}}
+ {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.Name | Safe}}
+ {{else}}
+ {{$.i18n.Tr .GetLastEventLabelFake $timeStr .Poster.Name | Safe}}
+ {{end}}
{{$tasks := .GetTasks}}
{{if gt $tasks 0}}
{{$tasksDone := .GetTasksDone}}