diff options
author | Jean-Baptiste Gomond <dev@jbgomond.com> | 2023-12-25 08:28:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 07:28:59 +0000 |
commit | d0f24ff4cad05c1145afeca791e7d02fe146d46a (patch) | |
tree | e1da84ade8f14914c7b37c3d29bc917a3cfb7c63 /templates/admin/navbar.tmpl | |
parent | 0407a402bb29a3643e2b4a8992f1d7687a88b40c (diff) | |
download | gitea-d0f24ff4cad05c1145afeca791e7d02fe146d46a.tar.gz gitea-d0f24ff4cad05c1145afeca791e7d02fe146d46a.zip |
Added instance-level variables (#28115)
This PR adds instance-level variables, and so closes #27726
![gitea_instance_variables_1](https://github.com/go-gitea/gitea/assets/8344487/ad409cd4-ce36-4c84-a764-34451b0fb63a)
![gitea_instance_variables_2](https://github.com/go-gitea/gitea/assets/8344487/426f0965-dec6-4560-948c-067cdeddd720)
![gitea_instance_variables_3](https://github.com/go-gitea/gitea/assets/8344487/cf1d7776-4938-4825-922e-cbbbf28a5f33)
Diffstat (limited to 'templates/admin/navbar.tmpl')
-rw-r--r-- | templates/admin/navbar.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 8ece95239c..b22db1d1fc 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -60,12 +60,15 @@ {{end}} {{end}} {{if .EnableActions}} - <details class="item toggleable-item" {{if .PageIsSharedSettingsRunners}}open{{end}}> + <details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsVariables}}open{{end}}> <summary>{{ctx.Locale.Tr "actions.actions"}}</summary> <div class="menu"> <a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/runners"> {{ctx.Locale.Tr "actions.runners"}} </a> + <a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/variables"> + {{ctx.Locale.Tr "actions.variables"}} + </a> </div> </details> {{end}} |