2022-03-30 16:42:47 +08:00
|
|
|
{{template "base/head" .}}
|
2023-02-02 06:56:10 +08:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository settings options">
|
2023-07-07 02:59:24 +08:00
|
|
|
{{template "shared/user/org_profile_avatar" .}}
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="ui container">
|
2023-07-07 02:59:24 +08:00
|
|
|
{{template "user/overview/header" .}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{template "base/alert" .}}
|
2022-06-28 04:58:46 +08:00
|
|
|
<p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{.locale.Tr "repo.settings"}}</strong></p>
|
2022-03-30 16:42:47 +08:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-28 04:58:46 +08:00
|
|
|
{{.locale.Tr "packages.settings.link"}}
|
2022-03-30 16:42:47 +08:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2022-06-28 04:58:46 +08:00
|
|
|
<p>{{.locale.Tr "packages.settings.link.description"}}</p>
|
2022-03-30 16:42:47 +08: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 17:35:02 +08:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2022-06-28 04:58:46 +08:00
|
|
|
<div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Repos}}
|
|
|
|
<div class="item" data-value="{{.ID}}">{{.Name}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2022-06-28 04:58:46 +08:00
|
|
|
<button class="ui green button">{{.locale.Tr "packages.settings.link.button"}}</button>
|
2022-03-30 16:42:47 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<h4 class="ui top attached error header">
|
2022-06-28 04:58:46 +08:00
|
|
|
{{.locale.Tr "repo.settings.danger_zone"}}
|
2022-03-30 16:42:47 +08:00
|
|
|
</h4>
|
2023-08-09 00:28:24 +08:00
|
|
|
<div class="ui attached error danger segment">
|
|
|
|
<div class="flex-list">
|
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-main">
|
|
|
|
<div class="flex-item-title">{{.locale.Tr "packages.settings.delete"}}</div>
|
|
|
|
<div class="flex-item-body">{{.locale.Tr "packages.settings.delete.description"}}</div>
|
2022-03-30 16:42:47 +08:00
|
|
|
</div>
|
2023-08-09 00:28:24 +08:00
|
|
|
<div class="flex-item-trailing">
|
|
|
|
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
|
|
|
|
</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 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">
|
|
|
|
{{template "base/modal_actions_confirm" .}}
|
|
|
|
</form>
|
2022-03-30 16:42:47 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|