2022-03-30 08:42:47 +00:00
|
|
|
{{template "base/head" .}}
|
2024-02-23 00:24:57 +00:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository settings options{{if .ContextUser.IsOrganization}} organization{{end}}">
|
|
|
|
{{if .ContextUser.IsOrganization}}
|
|
|
|
{{template "org/header" .}}
|
|
|
|
{{else}}
|
|
|
|
{{template "shared/user/org_profile_avatar" .}}
|
|
|
|
{{end}}
|
2022-03-30 08:42:47 +00:00
|
|
|
<div class="ui container">
|
2024-02-23 00:24:57 +00:00
|
|
|
{{if not .ContextUser.IsOrganization}}
|
|
|
|
{{template "user/overview/header" .}}
|
|
|
|
{{end}}
|
2022-03-30 08:42:47 +00:00
|
|
|
{{template "base/alert" .}}
|
2024-03-04 10:57:30 +00:00
|
|
|
<p><a href="{{.PackageDescriptor.VersionWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{ctx.Locale.Tr "repo.settings"}}</strong></p>
|
2022-03-30 08:42:47 +00:00
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "packages.settings.link"}}
|
2022-03-30 08:42:47 +00:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2023-09-25 08:56:50 +00:00
|
|
|
<p>{{ctx.Locale.Tr "packages.settings.link.description"}}</p>
|
2022-03-30 08:42:47 +00: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 09:35:02 +00:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2023-09-25 08:56:50 +00:00
|
|
|
<div class="default text">{{ctx.Locale.Tr "packages.settings.link.select"}}</div>
|
2022-03-30 08:42:47 +00:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Repos}}
|
|
|
|
<div class="item" data-value="{{.ID}}">{{.Name}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 08:56:50 +00:00
|
|
|
<button class="ui primary button">{{ctx.Locale.Tr "packages.settings.link.button"}}</button>
|
2022-03-30 08:42:47 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<h4 class="ui top attached error header">
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "repo.settings.danger_zone"}}
|
2022-03-30 08:42:47 +00:00
|
|
|
</h4>
|
2023-08-08 16:28:24 +00:00
|
|
|
<div class="ui attached error danger segment">
|
|
|
|
<div class="flex-list">
|
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-main">
|
2023-09-25 08:56:50 +00:00
|
|
|
<div class="flex-item-title">{{ctx.Locale.Tr "packages.settings.delete"}}</div>
|
|
|
|
<div class="flex-item-body">{{ctx.Locale.Tr "packages.settings.delete.description"}}</div>
|
2022-03-30 08:42:47 +00:00
|
|
|
</div>
|
2023-08-08 16:28:24 +00:00
|
|
|
<div class="flex-item-trailing">
|
2023-09-25 08:56:50 +00:00
|
|
|
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{ctx.Locale.Tr "packages.settings.delete"}}</button>
|
2023-08-08 16:28:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="ui tiny modal" id="delete-package-modal">
|
|
|
|
<div class="header">
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "packages.settings.delete"}}
|
2023-08-08 16:28:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2024-06-04 13:57:11 +00:00
|
|
|
<div class="ui warning message tw-break-anywhere">
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
|
2023-08-08 16:28:24 +00:00
|
|
|
</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 08:42:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|