2022-03-30 03:42:47 -05:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 17:56:10 -05:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository settings options">
|
2022-03-30 03:42:47 -05:00
|
|
|
{{template "user/overview/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
2022-06-27 15:58:46 -05:00
|
|
|
<p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{.locale.Tr "repo.settings"}}</strong></p>
|
2022-03-30 03:42:47 -05:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 15:58:46 -05:00
|
|
|
{{.locale.Tr "packages.settings.link"}}
|
2022-03-30 03:42:47 -05:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2022-06-27 15:58:46 -05:00
|
|
|
<p>{{.locale.Tr "packages.settings.link.description"}}</p>
|
2022-03-30 03:42:47 -05:00
|
|
|
<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>
|
2022-06-27 15:58:46 -05:00
|
|
|
<div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
|
2022-03-30 03:42:47 -05:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Repos}}
|
|
|
|
<div class="item" data-value="{{.ID}}">{{.Name}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-06-27 15:58:46 -05:00
|
|
|
<button class="ui green button">{{.locale.Tr "packages.settings.link.button"}}</button>
|
2022-03-30 03:42:47 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<h4 class="ui top attached error header">
|
2022-06-27 15:58:46 -05:00
|
|
|
{{.locale.Tr "repo.settings.danger_zone"}}
|
2022-03-30 03:42:47 -05:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached error table danger segment">
|
|
|
|
<div class="item">
|
|
|
|
<div class="ui right">
|
2022-06-27 15:58:46 -05:00
|
|
|
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
|
2022-03-30 03:42:47 -05:00
|
|
|
</div>
|
|
|
|
<div>
|
2022-06-27 15:58:46 -05:00
|
|
|
<h5>{{.locale.Tr "packages.settings.delete"}}</h5>
|
|
|
|
<p>{{.locale.Tr "packages.settings.delete.description"}}</p>
|
2022-03-30 03:42:47 -05:00
|
|
|
</div>
|
|
|
|
<div class="ui tiny modal" id="delete-package-modal">
|
|
|
|
<div class="header">
|
2022-06-27 15:58:46 -05:00
|
|
|
{{.locale.Tr "packages.settings.delete"}}
|
2022-03-30 03:42:47 -05:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2023-01-16 17:35:48 -05:00
|
|
|
<div class="ui warning message text left word-break">
|
2022-06-27 15:58:46 -05:00
|
|
|
{{.locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
|
2022-03-30 03:42:47 -05:00
|
|
|
</div>
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="delete">
|
|
|
|
<div class="text right actions">
|
2022-06-27 15:58:46 -05:00
|
|
|
<div class="ui cancel button">{{.locale.Tr "cancel"}}</div>
|
|
|
|
<button class="ui red button">{{.locale.Tr "ok"}}</button>
|
2022-03-30 03:42:47 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|