mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-15 07:26:19 +00:00
Add code editor setting dropdowns (#36534)
Adds three `<select>` controls on top right for indent style, indent size, and line wrap to the code editor (`_edit`), diff patch editor (`_diffpatch`) and git hook editor (`/settings/hooks/git/pre-receive`). The git hooks editor is restyled to wrap the content in a box. Also included is a bugfix for the git hooks editor where monaco was not initialized correctly. --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
{{ctx.Locale.Tr "packages.container.layers"}}
|
||||
{{/* only show the platform if the image metadata is not the package's, which means that it is a sub manifest */}}
|
||||
{{if ne .ContainerImageMetadata .PackageDescriptor.Metadata}}
|
||||
<span class="tw-text-sm flex-text-inline" title="{{ctx.Locale.Tr "packages.container.details.platform"}}">
|
||||
<span class="tw-text-base flex-text-inline" title="{{ctx.Locale.Tr "packages.container.details.platform"}}">
|
||||
({{svg "octicon-cpu" 12}} {{.ContainerImageMetadata.Platform}})
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user