diff options
author | Unknwon <u@gogs.io> | 2015-08-15 02:54:39 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 02:54:39 +0800 |
commit | a24141ec9cc1f47f89469a4ba1c1f583474d38db (patch) | |
tree | ee559d315f9a6dda80291130b3a6b58647cdcec9 /templates/repo/issue | |
parent | 30b428bf0eabb9f6cd73894d776502e1b7e351b7 (diff) | |
download | gitea-a24141ec9cc1f47f89469a4ba1c1f583474d38db.tar.gz gitea-a24141ec9cc1f47f89469a4ba1c1f583474d38db.zip |
more on #1319
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index fc84d101bc..2da356f32f 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -13,7 +13,11 @@ {{end}} {{ $createdStr:= TimeSince .Issue.Created $.Lang }} <span class="time-desc"> + {{if gt .Issue.Poster.Id 0}} {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.Name | Safe}} + {{else}} + {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.Poster.Name | Safe}} + {{end}} ยท {{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}} </span> @@ -22,12 +26,12 @@ <div class="twelve wide column comment-list"> <ui class="ui comments"> <div class="comment"> - <a class="avatar" href="{{.Issue.Poster.HomeLink}}"> + <a class="avatar" {{if gt .Issue.Poster.Id 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}> <img src="{{.Issue.Poster.AvatarLink}}"> </a> <div class="content"> <div class="ui top attached header"> - <span class="text grey"><a href="{{.Issue.Poster.HomeLink}}">{{.Issue.Poster.Name}}</a> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}</span> + <span class="text grey"><a {{if gt .Issue.Poster.Id 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.Name}}</a> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}</span> <div class="ui right actions"> </div> </div> |