Share modal: Override UI theme via URL param for Share link, rendered panel, or embedded panel, Closes #1701
This commit is contained in:
@@ -28,6 +28,11 @@ func setIndexViewData(c *middleware.Context) error {
|
||||
currentUser.Name = currentUser.Login
|
||||
}
|
||||
|
||||
themeUrlParam := c.Query("theme")
|
||||
if themeUrlParam == "light" {
|
||||
currentUser.LightTheme = true
|
||||
}
|
||||
|
||||
c.Data["User"] = currentUser
|
||||
c.Data["Settings"] = settings
|
||||
c.Data["AppUrl"] = setting.AppUrl
|
||||
|
||||
Reference in New Issue
Block a user