-
-
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
Add the ability to have built in themes in Gitea #4198
Changes from all commits
a5e3375
c410f17
7686c0c
2980555
b06271d
bc898b2
5081c40
fc552b6
60757b5
c47dc20
29fd549
6f7d8a1
56bae58
af2665b
e281c86
37a8076
366b573
8d8c60c
554a862
eb5e2ca
3e99050
b70165f
c3c0c9c
362a4d0
4ac504f
686e0c2
d2f944b
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 |
---|---|---|
|
@@ -186,6 +186,9 @@ func NewFuncMap() []template.FuncMap { | |
"ParseDeadline": func(deadline string) []string { | ||
return strings.Split(deadline, "|") | ||
}, | ||
"DefaultTheme": func() string { | ||
return setting.UI.DefaultTheme | ||
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. I think that it may be better to add this as variable to data since this function just acts like a variable. 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. I'm not sure about this because this pattern already exists and I am just following. Example see |
||
}, | ||
}} | ||
} | ||
|
||
|
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.
Maybe it is better to use the default value ˋdefaultˋ here since you’re using it in the config cheat sheet.
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.
Opps. I updated this per @lunny feedback, but I forgot to update docs. Let me do that there.