Skip to content

Commit 4470bdf

Browse files
committed
remove system manager tag
1 parent 299508d commit 4470bdf

File tree

9 files changed

+19
-35
lines changed

9 files changed

+19
-35
lines changed

custom/conf/app.example.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ DEFAULT_SHOW_FULL_NAME = false
207207
SEARCH_REPO_DESCRIPTION = true
208208
; Whether to enable a Service Worker to cache frontend assets
209209
USE_SERVICE_WORKER = true
210-
; show `system administrator` tag on comment header
211-
SHOW_SYS_ADMIN_COMMENT_TAG = false
212210

213211
[ui.admin]
214212
; Number of users that are displayed on one page

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
172172
- `DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
173173
- `SEARCH_REPO_DESCRIPTION`: **true**: Whether to search within description at repository search on explore page.
174174
- `USE_SERVICE_WORKER`: **true**: Whether to enable a Service Worker to cache frontend assets.
175-
- `SHOW_SYS_ADMIN_COMMENT_TAG`: **false**: show `system administrator` tag on comment header
176175

177176
### UI - Admin (`ui.admin`)
178177

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ menu:
4040
- `ISSUE_PAGING_NUM`: 工单页面每页显示的工单数量。
4141
- `MEMBERS_PAGING_NUM`: **20**: 组织成员页面每页显示的成员数量。
4242
- `FEED_MAX_COMMIT_NUM`: 活动流页面显示的最大提交数量。
43-
- `SHOW_SYS_ADMIN_COMMENT_TAG`: **false**: 在系统管理员的评论上显示 `系统管理员` 标志
4443

4544
### UI - Admin (`ui.admin`)
4645

models/issue_comment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ const (
111111
CommentTagPoster
112112
CommentTagWriter
113113
CommentTagOwner
114-
CommentTagSysAdmin
115114
)
116115

117116
// Comment represents a comment in commit and issue page.

modules/setting/setting.go

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,25 @@ var (
160160

161161
// UI settings
162162
UI = struct {
163-
ExplorePagingNum int
164-
IssuePagingNum int
165-
RepoSearchPagingNum int
166-
MembersPagingNum int
167-
FeedMaxCommitNum int
168-
FeedPagingNum int
169-
GraphMaxCommitNum int
170-
CodeCommentLines int
171-
ReactionMaxUserNum int
172-
ThemeColorMetaTag string
173-
MaxDisplayFileSize int64
174-
ShowUserEmail bool
175-
DefaultShowFullName bool
176-
DefaultTheme string
177-
Themes []string
178-
Reactions []string
179-
ReactionsMap map[string]bool
180-
SearchRepoDescription bool
181-
UseServiceWorker bool
182-
ShowSysAdminCommentTag bool
163+
ExplorePagingNum int
164+
IssuePagingNum int
165+
RepoSearchPagingNum int
166+
MembersPagingNum int
167+
FeedMaxCommitNum int
168+
FeedPagingNum int
169+
GraphMaxCommitNum int
170+
CodeCommentLines int
171+
ReactionMaxUserNum int
172+
ThemeColorMetaTag string
173+
MaxDisplayFileSize int64
174+
ShowUserEmail bool
175+
DefaultShowFullName bool
176+
DefaultTheme string
177+
Themes []string
178+
Reactions []string
179+
ReactionsMap map[string]bool
180+
SearchRepoDescription bool
181+
UseServiceWorker bool
183182

184183
Notification struct {
185184
MinTimeout time.Duration
@@ -908,7 +907,6 @@ func NewContext() {
908907
UI.DefaultShowFullName = Cfg.Section("ui").Key("DEFAULT_SHOW_FULL_NAME").MustBool(false)
909908
UI.SearchRepoDescription = Cfg.Section("ui").Key("SEARCH_REPO_DESCRIPTION").MustBool(true)
910909
UI.UseServiceWorker = Cfg.Section("ui").Key("USE_SERVICE_WORKER").MustBool(true)
911-
UI.ShowSysAdminCommentTag = Cfg.Section("ui").Key("SHOW_SYS_ADMIN_COMMENT_TAG").MustBool(false)
912910

913911
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt"))
914912

options/locale/locale_en-US.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,6 @@ issues.ref_from = `from %[1]s`
10751075
issues.poster = Poster
10761076
issues.collaborator = Collaborator
10771077
issues.owner = Owner
1078-
issues.sys_admin = system administrator
10791078
issues.re_request_review=Re-request review
10801079
issues.is_stale = There have been changes to this PR since this review
10811080
issues.remove_request_review=Remove review request

routers/repo/issue.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,6 @@ func commentTag(repo *models.Repository, poster *models.User, issue *models.Issu
993993
return models.CommentTagOwner, nil
994994
}
995995

996-
if setting.UI.ShowSysAdminCommentTag && poster.IsAdmin {
997-
return models.CommentTagSysAdmin, nil
998-
}
999-
1000996
if ok, err = repo.IsCollaborator(poster.ID); ok && err == nil {
1001997
return models.CommentTagWriter, nil
1002998
}

templates/repo/issue/view_content.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
{{$.i18n.Tr "repo.issues.collaborator"}}
4949
{{else if eq .Issue.ShowTag 3}}
5050
{{$.i18n.Tr "repo.issues.owner"}}
51-
{{else if eq .Issue.ShowTag 4}}
52-
{{$.i18n.Tr "repo.issues.sys_admin"}}
5351
{{end}}
5452
</div>
5553
{{end}}

templates/repo/issue/view_content/comments.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
{{$.i18n.Tr "repo.issues.collaborator"}}
5555
{{else if eq .ShowTag 3}}
5656
{{$.i18n.Tr "repo.issues.owner"}}
57-
{{else if eq .ShowTag 4}}
58-
{{$.i18n.Tr "repo.issues.sys_admin"}}
5957
{{end}}
6058
</div>
6159
{{end}}

0 commit comments

Comments
 (0)