2022-03-30 04:42:47 -04: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 04:42:47 -04:00
|
|
|
{{template "user/overview/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{.locale.Tr "repo.settings"}}</strong></p>
|
2022-03-30 04:42:47 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "packages.settings.link"}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2022-06-27 16:58:46 -04:00
|
|
|
<p>{{.locale.Tr "packages.settings.link.description"}}</p>
|
2022-03-30 04:42:47 -04: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}}">
|
2023-05-01 05:35:02 -04:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
|
2022-03-30 04:42:47 -04:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Repos}}
|
|
|
|
<div class="item" data-value="{{.ID}}">{{.Name}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui green button">{{.locale.Tr "packages.settings.link.button"}}</button>
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<h4 class="ui top attached error header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "repo.settings.danger_zone"}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached error table danger segment">
|
|
|
|
<div class="item">
|
|
|
|
<div class="ui right">
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<h5>{{.locale.Tr "packages.settings.delete"}}</h5>
|
|
|
|
<p>{{.locale.Tr "packages.settings.delete.description"}}</p>
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
<div class="ui tiny modal" id="delete-package-modal">
|
|
|
|
<div class="header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "packages.settings.delete"}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2023-02-13 12:59:59 -05:00
|
|
|
<div class="ui warning message text left gt-word-break">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="delete">
|
2023-04-23 05:24:19 -04:00
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|