mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-04 15:50:41 +02:00
26d83c932a
The banner allows site operators to communicate important announcements (e.g., maintenance windows, policy updates, service notices) directly within the UI. The maintenance mode only allows admin to access the web UI. * Fix #2345 * Fix #9618 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
12 lines
424 B
Go HTML Template
12 lines
424 B
Go HTML Template
{{$banner := ctx.CurrentWebBanner}}
|
|
{{if $banner}}
|
|
<div class="ui info message web-banner-container">
|
|
<div class="render-content markup web-banner-content">
|
|
{{ctx.RenderUtils.MarkdownToHtml $banner.ContentMessage}}
|
|
</div>
|
|
<button type="button" class="btn dismiss-banner link-action" aria-label="{{ctx.Locale.Tr "dismiss"}}" data-url="{{AppSubUrl}}/-/web-banner/dismiss">
|
|
{{svg "octicon-x"}}
|
|
</button>
|
|
</div>
|
|
{{end}}
|