mirror of
https://github.com/go-gitea/gitea
synced 2025-11-09 15:58:13 +00:00
Support selecting theme on the footer (#35741)
Fixes: https://github.com/go-gitea/gitea/pull/27576
This commit is contained in:
@@ -34,4 +34,10 @@ gitea-theme-meta-info {
|
||||
--k2: real;
|
||||
}`)
|
||||
assert.Equal(t, map[string]string{"--k2": "real"}, m)
|
||||
|
||||
// compressed CSS, no trailing semicolon
|
||||
m = parseThemeMetaInfoToMap(`gitea-theme-meta-info{--k1:"v1"}`)
|
||||
assert.Equal(t, map[string]string{"--k1": "v1"}, m)
|
||||
m = parseThemeMetaInfoToMap(`gitea-theme-meta-info{--k1:"v1";--k2:"v2"}`)
|
||||
assert.Equal(t, map[string]string{"--k1": "v1", "--k2": "v2"}, m)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user