summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-09-11 02:09:14 +0800
committerGitHub <noreply@github.com>2020-09-10 14:09:14 -0400
commit4f8dad37f834833012004bf5b158e5129af4b610 (patch)
tree0b3b81baa95540cda91294f4cf3027e949f6b2b5 /models/issue.go
parent5b10da241b83dc1c9a5a745cd03edaaac900eab4 (diff)
downloadgitea-4f8dad37f834833012004bf5b158e5129af4b610.tar.gz
gitea-4f8dad37f834833012004bf5b158e5129af4b610.zip
ui: change commentTag style (#11668)
* ui: change commentTag style * Add comment tag in first comment (issue content) * Show CommentTagPoster in other way Signed-off-by: a1012112796 <1012112796@qq.com> * Update routers/repo/issue.go Co-authored-by: Lauris BH <lauris@nix.lv> * fix lint * revert CommentTagPoster Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index 228316fc3c..ede3180954 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -67,6 +67,9 @@ type Issue struct {
// IsLocked limits commenting abilities to users on an issue
// with write access
IsLocked bool `xorm:"NOT NULL DEFAULT false"`
+
+ // For view issue page.
+ ShowTag CommentTag `xorm:"-"`
}
var (