forked from forgejo/forgejo
Add details summary for vertical menus in settings to allow toggling (#25098)
Close #25051 [referenced answer](69722686 (69722686)
) for marker overwrite. One limitation is that fomantic does not have hover and active effects for the vertical submenu ([reference](https://fomantic-ui.com/collections/menu.html#sub-menu)). And we might need to overwrite some styles if hover and active effects are needed. Update: Used `data:image/svg` instead of `marker` content. And adjusted styles for hover effect. Take admin settings as an example:63f69823
-ef43-47d5-a518-544b5ea35ba6 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
379ec13030
commit
58536093b3
7 changed files with 56 additions and 16 deletions
|
@ -23,8 +23,8 @@
|
|||
</a>
|
||||
{{end}}
|
||||
{{if .EnableActions}}
|
||||
<div class="item">
|
||||
{{.locale.Tr "actions.actions"}}
|
||||
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets}}open{{end}}>
|
||||
<summary>{{.locale.Tr "actions.actions"}}</summary>
|
||||
<div class="menu">
|
||||
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{.OrgLink}}/settings/actions/runners">
|
||||
{{.locale.Tr "actions.runners"}}
|
||||
|
@ -33,7 +33,7 @@
|
|||
{{.locale.Tr "secrets.secrets"}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
{{end}}
|
||||
<a class="{{if .PageIsSettingsDelete}}active {{end}}item" href="{{.OrgLink}}/settings/delete">
|
||||
{{.locale.Tr "org.settings.delete"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue