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