mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 00:54:28 +00:00
51383ec084
As discussed in #22847 the helpers in helpers.less need to have a separate prefix as they are causing conflicts with fomantic styles This will allow us to have the `.gt-hidden { display:none !important; }` style that is needed to for the reverted PR. Of note in doing this I have noticed that there was already a conflict with at least one chroma style which this PR now avoids. I've also added in the `gt-hidden` style that matches the tailwind one and switched the code that needed it to use that. Signed-off-by: Andrew Thornton <art27@cantab.net> --------- Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
72 lines
2.7 KiB
Handlebars
72 lines
2.7 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository settings options">
|
|
{{template "user/overview/header" .}}
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
<p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{.locale.Tr "repo.settings"}}</strong></p>
|
|
<h4 class="ui top attached header">
|
|
{{.locale.Tr "packages.settings.link"}}
|
|
</h4>
|
|
<div class="ui attached segment">
|
|
<p>{{.locale.Tr "packages.settings.link.description"}}</p>
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
{{template "base/disable_form_autofill"}}
|
|
{{.CsrfTokenHtml}}
|
|
<input type="hidden" name="action" value="link">
|
|
<div class="field">
|
|
<div class="ui clearable selection dropdown">
|
|
{{$repoID := 0}}
|
|
{{if .PackageDescriptor.Repository}}
|
|
{{$repoID = .PackageDescriptor.Repository.ID}}
|
|
{{end}}
|
|
<input type="hidden" name="repo_id" value="{{$repoID}}">
|
|
<i class="dropdown icon"></i>
|
|
<div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
|
|
<div class="menu">
|
|
{{range .Repos}}
|
|
<div class="item" data-value="{{.ID}}">{{.Name}}</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<button class="ui green button">{{.locale.Tr "packages.settings.link.button"}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<h4 class="ui top attached error header">
|
|
{{.locale.Tr "repo.settings.danger_zone"}}
|
|
</h4>
|
|
<div class="ui attached error table danger segment">
|
|
<div class="item">
|
|
<div class="ui right">
|
|
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
|
|
</div>
|
|
<div>
|
|
<h5>{{.locale.Tr "packages.settings.delete"}}</h5>
|
|
<p>{{.locale.Tr "packages.settings.delete.description"}}</p>
|
|
</div>
|
|
<div class="ui tiny modal" id="delete-package-modal">
|
|
<div class="header">
|
|
{{.locale.Tr "packages.settings.delete"}}
|
|
</div>
|
|
<div class="content">
|
|
<div class="ui warning message text left gt-word-break">
|
|
{{.locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
|
|
</div>
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<input type="hidden" name="action" value="delete">
|
|
<div class="text right actions">
|
|
<div class="ui cancel button">{{.locale.Tr "cancel"}}</div>
|
|
<button class="ui red button">{{.locale.Tr "ok"}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|