-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI config to toggle whether user email shows up in Explore Users #336
Changes from 1 commit
66a1c59
ff3c5c0
a232688
c3b7afd
4c17aee
aa3b5b1
e00b963
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,11 +147,12 @@ var ( | |
|
||
// UI settings | ||
UI struct { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is wrong and makes Drone fail :( |
||
ExplorePagingNum int | ||
IssuePagingNum int | ||
FeedMaxCommitNum int | ||
ThemeColorMetaTag string | ||
MaxDisplayFileSize int64 | ||
ExplorePagingNum int | ||
IssuePagingNum int | ||
FeedMaxCommitNum int | ||
ThemeColorMetaTag string | ||
MaxDisplayFileSize int64 | ||
ShowUserEmailInExplore bool | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry @bkcsoft , fixed |
||
|
||
Admin struct { | ||
UserPagingNum int | ||
|
@@ -601,6 +602,8 @@ please consider changing to GITEA_CUSTOM`) | |
ShowFooterVersion = Cfg.Section("other").Key("SHOW_FOOTER_VERSION").MustBool() | ||
ShowFooterTemplateLoadTime = Cfg.Section("other").Key("SHOW_FOOTER_TEMPLATE_LOAD_TIME").MustBool() | ||
|
||
UI.ShowUserEmailInExplore = Cfg.Section("ui").Key("SHOW_USER_EMAIL_IN_EXPLORE").MustBool() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also this line isn't necessary, see https://github.com/go-gitea/gitea/pull/336/files#diff-60f5fca6d29eafbb30eb645a0cd4041fR579 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this line is no need since UI will be map from ini file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This still applies, please add |
||
|
||
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt")) | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer
SHOW_USER_EMAIL
and use this setting for multiple places.