mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-21 14:39:23 +00:00
Rebased to forgejo.
This commit is contained in:
parent
b86aefc038
commit
aaea154eca
35 changed files with 63 additions and 63 deletions
|
@ -35,7 +35,7 @@
|
||||||
<th colspan="5">
|
<th colspan="5">
|
||||||
<form class="tw-float-right" method="post" action="{{AppSubUrl}}/admin/notices/empty">
|
<form class="tw-float-right" method="post" action="{{AppSubUrl}}/admin/notices/empty">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<button type="submit" class="ui red small button">{{ctx.Locale.Tr "admin.notices.delete_all"}}</button>
|
<button type="submit" class="ui danger small button">{{ctx.Locale.Tr "admin.notices.delete_all"}}</button>
|
||||||
</form>
|
</form>
|
||||||
<div class="ui floating upward dropdown small button">{{/* TODO: Make this dropdown accessible */}}
|
<div class="ui floating upward dropdown small button">{{/* TODO: Make this dropdown accessible */}}
|
||||||
<span class="text">{{ctx.Locale.Tr "admin.notices.operations"}}</span>
|
<span class="text">{{ctx.Locale.Tr "admin.notices.operations"}}</span>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="ui small teal button" id="delete-selection" data-link="{{.Link}}/delete" data-redirect="?page={{.Page.Paginater.Current}}">
|
<button class="ui small danger button" id="delete-selection" data-link="{{.Link}}/delete" data-redirect="?page={{.Page.Paginater.Current}}">
|
||||||
<span class="text">{{ctx.Locale.Tr "admin.notices.delete_selected"}}</span>
|
<span class="text">{{ctx.Locale.Tr "admin.notices.delete_selected"}}</span>
|
||||||
</button>
|
</button>
|
||||||
</th>
|
</th>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
{{$sum}}
|
{{$sum}}
|
||||||
<form action="{{$.Link}}/remove-all-items" method="post" class="tw-inline-block tw-ml-4">
|
<form action="{{$.Link}}/remove-all-items" method="post" class="tw-inline-block tw-ml-4">
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<button class="ui tiny basic red button">{{ctx.Locale.Tr "admin.monitor.queue.settings.remove_all_items"}}</button>
|
<button class="ui tiny basic danger button">{{ctx.Locale.Tr "admin.monitor.queue.settings.remove_all_items"}}</button>
|
||||||
</form>
|
</form>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
{{template "base/modal_actions_confirm"}}
|
{{template "base/modal_actions_confirm"}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<button class="ui button red show-modal tw-p-2" data-modal="#delete-unadopted-modal-{{$dirI}}">{{svg "octicon-x"}} {{ctx.Locale.Tr "repo.delete_preexisting_label"}}</button>
|
<button class="ui button danger show-modal tw-p-2" data-modal="#delete-unadopted-modal-{{$dirI}}">{{svg "octicon-x"}} {{ctx.Locale.Tr "repo.delete_preexisting_label"}}</button>
|
||||||
<div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
|
<div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label">{{ctx.Locale.Tr "repo.delete_preexisting"}}</span>
|
<span class="label">{{ctx.Locale.Tr "repo.delete_preexisting"}}</span>
|
||||||
|
|
|
@ -11,7 +11,7 @@ The ".ok.button" and ".cancel.button" selectors are also used by Fomantic Modal
|
||||||
*/}}
|
*/}}
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
{{if .ModalButtonDangerText}}
|
{{if .ModalButtonDangerText}}
|
||||||
<button class="ui danger red ok button">{{.ModalButtonDangerText}}</button>
|
<button class="ui danger ok button">{{.ModalButtonDangerText}}</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{$textNegitive := ctx.Locale.Tr "modal.no"}}
|
{{$textNegitive := ctx.Locale.Tr "modal.no"}}
|
||||||
{{$textPositive := ctx.Locale.Tr "modal.yes"}}
|
{{$textPositive := ctx.Locale.Tr "modal.yes"}}
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<div class="flex-item-body">{{ctx.Locale.Tr "packages.settings.delete.description"}}</div>
|
<div class="flex-item-body">{{ctx.Locale.Tr "packages.settings.delete.description"}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{ctx.Locale.Tr "packages.settings.delete"}}</button>
|
<button class="ui danger show-modal button" data-modal="#delete-package-modal">{{ctx.Locale.Tr "packages.settings.delete"}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui tiny modal" id="delete-package-modal">
|
<div class="ui tiny modal" id="delete-package-modal">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
{{if .IsEditRule}}
|
{{if .IsEditRule}}
|
||||||
<button class="ui primary button" name="action" value="save">{{ctx.Locale.Tr "save"}}</button>
|
<button class="ui primary button" name="action" value="save">{{ctx.Locale.Tr "save"}}</button>
|
||||||
<button class="ui red button" name="action" value="remove">{{ctx.Locale.Tr "remove"}}</button>
|
<button class="ui danger button" name="action" value="remove">{{ctx.Locale.Tr "remove"}}</button>
|
||||||
<a class="ui button" href="{{.Link}}/preview">{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.preview"}}</a>
|
<a class="ui button" href="{{.Link}}/preview">{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.preview"}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class="ui primary button" name="action" value="save">{{ctx.Locale.Tr "add"}}</button>
|
<button class="ui primary button" name="action" value="save">{{ctx.Locale.Tr "add"}}</button>
|
||||||
|
|
|
@ -178,9 +178,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="four wide column middle aligned text right">
|
<div class="four wide column middle aligned text right">
|
||||||
{{- if .PullRequest.HasMerged -}}
|
{{- if .PullRequest.HasMerged -}}
|
||||||
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button purple show-form">{{svg "octicon-git-merge" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
|
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-git-merge" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
|
||||||
{{else if .Issue.IsClosed}}
|
{{else if .Issue.IsClosed}}
|
||||||
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button red show-form">{{svg "octicon-issue-closed" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
|
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-issue-closed" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-git-pull-request" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
|
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-git-pull-request" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -47,10 +47,10 @@
|
||||||
<button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{ctx.Locale.Tr "repo.diff.review.comment"}}</button>
|
<button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{ctx.Locale.Tr "repo.diff.review.comment"}}</button>
|
||||||
{{if $showSelfTooltip}}
|
{{if $showSelfTooltip}}
|
||||||
<span class="tw-inline-block" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.review.self_reject"}}">
|
<span class="tw-inline-block" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.review.self_reject"}}">
|
||||||
<button type="submit" name="type" value="reject" disabled class="ui submit red tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.reject"}}</button>
|
<button type="submit" name="type" value="reject" disabled class="ui submit danger tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.reject"}}</button>
|
||||||
</span>
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button type="submit" name="type" value="reject" class="ui submit red tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.reject"}}</button>
|
<button type="submit" name="type" value="reject" class="ui submit danger tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.reject"}}</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -78,5 +78,5 @@
|
||||||
<button id="commit-button" type="submit" class="ui primary button">
|
<button id="commit-button" type="submit" class="ui primary button">
|
||||||
{{if eq .commit_choice "commit-to-new-branch"}}{{ctx.Locale.Tr "repo.editor.propose_file_change"}}{{else}}{{ctx.Locale.Tr "repo.editor.commit_changes"}}{{end}}
|
{{if eq .commit_choice "commit-to-new-branch"}}{{ctx.Locale.Tr "repo.editor.propose_file_change"}}{{else}}{{ctx.Locale.Tr "repo.editor.commit_changes"}}{{end}}
|
||||||
</button>
|
</button>
|
||||||
<a class="ui button red" href="{{$.BranchLink}}/{{PathEscapeSegments .TreePath}}">{{ctx.Locale.Tr "repo.editor.cancel"}}</a>
|
<a class="ui button danger" href="{{$.BranchLink}}/{{PathEscapeSegments .TreePath}}">{{ctx.Locale.Tr "repo.editor.cancel"}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
{{if .Failed}}
|
{{if .Failed}}
|
||||||
<button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{ctx.Locale.Tr "repo.settings.delete"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#delete-repo-modal">{{ctx.Locale.Tr "repo.settings.delete"}}</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class="ui basic show-modal button" data-modal="#cancel-repo-modal">{{ctx.Locale.Tr "cancel"}}</button>
|
<button class="ui basic show-modal button" data-modal="#cancel-repo-modal">{{ctx.Locale.Tr "cancel"}}</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.confirm_delete"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.confirm_delete"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
.DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
.DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<a class="ui mini red button remove-rel-attach tw-ml-3" data-id="{{.ID}}" data-uuid="{{.UUID}}">
|
<a class="ui mini danger button remove-rel-attach tw-ml-3" data-id="{{.ID}}" data-uuid="{{.UUID}}">
|
||||||
{{ctx.Locale.Tr "remove"}}
|
{{ctx.Locale.Tr "remove"}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
<input name="attachment-template-new-name" placeholder="{{ctx.Locale.Tr "repo.release.asset_name"}}" class="attachment_edit">
|
<input name="attachment-template-new-name" placeholder="{{ctx.Locale.Tr "repo.release.asset_name"}}" class="attachment_edit">
|
||||||
<input name="attachment-template-new-exturl" placeholder="{{ctx.Locale.Tr "repo.release.asset_external_url"}}" class="attachment_edit">
|
<input name="attachment-template-new-exturl" placeholder="{{ctx.Locale.Tr "repo.release.asset_external_url"}}" class="attachment_edit">
|
||||||
</div>
|
</div>
|
||||||
<a class="ui mini red button remove-rel-attach tw-ml-3">
|
<a class="ui mini danger button remove-rel-attach tw-ml-3">
|
||||||
{{ctx.Locale.Tr "remove"}}
|
{{ctx.Locale.Tr "remove"}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
<a class="ui small button" href="{{.RepoLink}}/releases">
|
<a class="ui small button" href="{{.RepoLink}}/releases">
|
||||||
{{ctx.Locale.Tr "repo.release.cancel"}}
|
{{ctx.Locale.Tr "repo.release.cancel"}}
|
||||||
</a>
|
</a>
|
||||||
<a class="ui small red button delete-button" data-url="{{$.RepoLink}}/releases/delete" data-id="{{.ID}}">
|
<a class="ui small danger button delete-button" data-url="{{$.RepoLink}}/releases/delete" data-id="{{.ID}}">
|
||||||
{{ctx.Locale.Tr "repo.release.delete_release"}}
|
{{ctx.Locale.Tr "repo.release.delete_release"}}
|
||||||
</a>
|
</a>
|
||||||
{{if .IsDraft}}
|
{{if .IsDraft}}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<td>{{DateUtils.TimeSince .CreatedUnix}}</td>
|
<td>{{DateUtils.TimeSince .CreatedUnix}}</td>
|
||||||
<td class="right aligned">
|
<td class="right aligned">
|
||||||
<a class="ui primary button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a>
|
<a class="ui primary button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a>
|
||||||
<button class="ui basic show-modal icon button red" data-modal="#delete-{{.Oid}}">
|
<button class="ui basic show-modal icon button danger" data-modal="#delete-{{.Oid}}">
|
||||||
<span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.delete_this_file"}}">{{svg "octicon-trash"}}</span>
|
<span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.delete_this_file"}}">{{svg "octicon-trash"}}</span>
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>
|
<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>
|
||||||
<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>
|
<button class="ui danger button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -266,7 +266,7 @@
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="action" value="push-mirror-remove">
|
<input type="hidden" name="action" value="push-mirror-remove">
|
||||||
<input type="hidden" name="push_mirror_id" value="{{.ID}}">
|
<input type="hidden" name="push_mirror_id" value="{{.ID}}">
|
||||||
<button class="ui basic red tiny button" data-tooltip-content="{{ctx.Locale.Tr "remove"}}">{{svg "octicon-trash" 14}}</button>
|
<button class="ui basic danger tiny button" data-tooltip-content="{{ctx.Locale.Tr "remove"}}">{{svg "octicon-trash" 14}}</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -457,7 +457,7 @@
|
||||||
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.convert_desc"}}</div>
|
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.convert_desc"}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#convert-mirror-repo-modal">{{ctx.Locale.Tr "repo.settings.convert"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#convert-mirror-repo-modal">{{ctx.Locale.Tr "repo.settings.convert"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -468,7 +468,7 @@
|
||||||
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.convert_fork_desc"}}</div>
|
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.convert_fork_desc"}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#convert-fork-repo-modal">{{ctx.Locale.Tr "repo.settings.convert_fork"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#convert-fork-repo-modal">{{ctx.Locale.Tr "repo.settings.convert_fork"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -488,10 +488,10 @@
|
||||||
<form class="ui form" action="{{.Link}}" method="post">
|
<form class="ui form" action="{{.Link}}" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="action" value="cancel_transfer">
|
<input type="hidden" name="action" value="cancel_transfer">
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.transfer_abort"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.transfer_abort"}}</button>
|
||||||
</form>
|
</form>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class="ui basic red show-modal button" data-modal="#transfer-repo-modal">{{ctx.Locale.Tr "repo.settings.transfer.button"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#transfer-repo-modal">{{ctx.Locale.Tr "repo.settings.transfer.button"}}</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -503,7 +503,7 @@
|
||||||
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main_desc" .DefaultWikiBranchName}}</div>
|
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main_desc" .DefaultWikiBranchName}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#rename-wiki-branch-modal">{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#rename-wiki-branch-modal">{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -513,7 +513,7 @@
|
||||||
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.wiki_delete_desc"}}</div>
|
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.wiki_delete_desc"}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#delete-wiki-modal">{{ctx.Locale.Tr "repo.settings.wiki_delete"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#delete-wiki-modal">{{ctx.Locale.Tr "repo.settings.wiki_delete"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -523,7 +523,7 @@
|
||||||
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.delete_desc"}}</div>
|
<div class="flex-item-body">{{ctx.Locale.Tr "repo.settings.delete_desc"}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{ctx.Locale.Tr "repo.settings.delete"}}</button>
|
<button class="ui basic danger show-modal button" data-modal="#delete-repo-modal">{{ctx.Locale.Tr "repo.settings.delete"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{if not .Repository.IsMirror}}
|
{{if not .Repository.IsMirror}}
|
||||||
|
@ -538,7 +538,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui basic red show-modal button" data-modal="#archive-repo-modal">
|
<button class="ui basic danger show-modal button" data-modal="#archive-repo-modal">
|
||||||
{{if .Repository.IsArchived}}
|
{{if .Repository.IsArchived}}
|
||||||
{{ctx.Locale.Tr "repo.settings.unarchive.button"}}
|
{{ctx.Locale.Tr "repo.settings.unarchive.button"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -580,7 +580,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.convert_confirm"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.convert_confirm"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -611,7 +611,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.convert_fork_confirm"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.convert_fork_confirm"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -647,7 +647,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.transfer_perform"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.transfer_perform"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -681,7 +681,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.confirm_delete"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.confirm_delete"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -713,7 +713,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.confirm_wiki_delete"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.confirm_wiki_delete"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -746,7 +746,7 @@
|
||||||
|
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.confirm_wiki_branch_rename"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "repo.settings.confirm_wiki_branch_rename"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -777,7 +777,7 @@
|
||||||
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
||||||
<div class="text right actions">
|
<div class="text right actions">
|
||||||
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui red button">
|
<button class="ui danger button">
|
||||||
{{if .Repository.IsArchived}}
|
{{if .Repository.IsArchived}}
|
||||||
{{ctx.Locale.Tr "repo.settings.unarchive.button"}}
|
{{ctx.Locale.Tr "repo.settings.unarchive.button"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
<form class="tw-inline-block" action="{{$.RepoLink}}/settings/tags/delete" method="post">
|
<form class="tw-inline-block" action="{{$.RepoLink}}/settings/tags/delete" method="post">
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="id" value="{{.ID}}">
|
<input type="hidden" name="id" value="{{.ID}}">
|
||||||
<button class="ui tiny red button">{{ctx.Locale.Tr "remove"}}</button>
|
<button class="ui tiny danger button">{{ctx.Locale.Tr "remove"}}</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<button class="ui primary button">
|
<button class="ui primary button">
|
||||||
{{ctx.Locale.Tr "repo.wiki.save_page"}}
|
{{ctx.Locale.Tr "repo.wiki.save_page"}}
|
||||||
</button>
|
</button>
|
||||||
<a class="ui button red" href="{{.Link}}">{{ctx.Locale.Tr "repo.wiki.cancel"}}</a>
|
<a class="ui button danger" href="{{.Link}}">{{ctx.Locale.Tr "repo.wiki.cancel"}}</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<div class="ui right">
|
<div class="ui right">
|
||||||
<a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_edit">{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}</a>
|
<a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_edit">{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}</a>
|
||||||
<a class="ui small primary button" href="{{.RepoLink}}/wiki?action=_new">{{ctx.Locale.Tr "repo.wiki.new_page_button"}}</a>
|
<a class="ui small primary button" href="{{.RepoLink}}/wiki?action=_new">{{ctx.Locale.Tr "repo.wiki.new_page_button"}}</a>
|
||||||
<a class="ui small red button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}?action=_delete" data-id="{{.PageURL}}">{{ctx.Locale.Tr "repo.wiki.delete_page_button"}}</a>
|
<a class="ui small danger button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}?action=_delete" data-id="{{.PageURL}}">{{ctx.Locale.Tr "repo.wiki.delete_page_button"}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<button class="ui primary button" data-url="{{.Link}}">{{ctx.Locale.Tr "actions.runners.update_runner"}}</button>
|
<button class="ui primary button" data-url="{{.Link}}">{{ctx.Locale.Tr "actions.runners.update_runner"}}</button>
|
||||||
<button class="ui red button delete-button" data-url="{{.Link}}/delete" data-modal="#runner-delete-modal">
|
<button class="ui danger button delete-button show-modal" data-url="{{.Link}}/delete" data-modal="#runner-delete-modal">
|
||||||
{{ctx.Locale.Tr "actions.runners.delete_runner"}}</button>
|
{{ctx.Locale.Tr "actions.runners.delete_runner"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<form action="{{$.Link}}/unblock" method="post">
|
<form action="{{$.Link}}/unblock" method="post">
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="user_id" value="{{.ID}}">
|
<input type="hidden" name="user_id" value="{{.ID}}">
|
||||||
<button class="ui red button">{{ctx.Locale.Tr "user.unblock"}}</button>
|
<button class="ui danger button">{{ctx.Locale.Tr "user.unblock"}}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
{{if and .IsSigned (ne .SignedUserID .ContextUser.ID)}}
|
{{if and .IsSigned (ne .SignedUserID .ContextUser.ID)}}
|
||||||
<li class="follow" hx-target="#profile-avatar-card" hx-indicator="#profile-avatar-card">
|
<li class="follow" hx-target="#profile-avatar-card" hx-indicator="#profile-avatar-card">
|
||||||
{{if $.IsFollowing}}
|
{{if $.IsFollowing}}
|
||||||
<button hx-post="{{.ContextUser.HomeLink}}?action=unfollow" class="ui basic red button">
|
<button hx-post="{{.ContextUser.HomeLink}}?action=unfollow" class="ui basic warning button">
|
||||||
{{svg "octicon-person"}} {{ctx.Locale.Tr "user.unfollow"}}
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "user.unfollow"}}
|
||||||
</button>
|
</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -114,11 +114,11 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="block" hx-target="#profile-avatar-card" hx-indicator="#profile-avatar-card">
|
<li class="block" hx-target="#profile-avatar-card" hx-indicator="#profile-avatar-card">
|
||||||
{{if $.IsBlocked}}
|
{{if $.IsBlocked}}
|
||||||
<button class="ui basic red button" hx-post="{{.ContextUser.HomeLink}}?action=unblock">
|
<button class="ui basic warning button" hx-post="{{.ContextUser.HomeLink}}?action=unblock">
|
||||||
{{svg "octicon-person"}} {{ctx.Locale.Tr "user.unblock"}}
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "user.unblock"}}
|
||||||
</button>
|
</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button type="submit" class="ui basic orange button" data-modal-id="block-user" hx-post="{{.ContextUser.HomeLink}}?action=block" hx-confirm="-">
|
<button type="submit" class="ui basic warning button" data-modal-id="block-user" hx-post="{{.ContextUser.HomeLink}}?action=block" hx-confirm="-">
|
||||||
{{svg "octicon-blocked"}} {{ctx.Locale.Tr "user.block"}}
|
{{svg "octicon-blocked"}} {{ctx.Locale.Tr "user.block"}}
|
||||||
</button>
|
</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="ui container center">
|
<div class="ui container center">
|
||||||
<h1 style="margin-top: 100px" class="error-code">404</h1>
|
<h1 style="margin-top: 100px" class="error-code">404</h1>
|
||||||
<p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</p>
|
<p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</p>
|
||||||
{{if .NotFoundGoBackURL}}<a class="ui button green" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>{{end}}
|
{{if .NotFoundGoBackURL}}<a class="ui button primary" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>{{end}}
|
||||||
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<div class="item">
|
<div class="item">
|
||||||
{{if not .IsPrimary}}
|
{{if not .IsPrimary}}
|
||||||
<div class="right floated content">
|
<div class="right floated content">
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-email" data-url="{{AppSubUrl}}/user/settings/account/email/delete" data-id="{{.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-email" data-url="{{AppSubUrl}}/user/settings/account/email/delete" data-id="{{.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.delete_email"}}
|
{{ctx.Locale.Tr "settings.delete_email"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
<input id="password-confirmation" name="password" type="password" autocomplete="off" required>
|
<input id="password-confirmation" name="password" type="password" autocomplete="off" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<button class="ui red button delete-button" data-modal-id="delete-account" data-type="form" data-form="#delete-form">
|
<button class="ui danger button delete-button" data-modal-id="delete-account" data-type="form" data-form="#delete-form">
|
||||||
{{ctx.Locale.Tr "settings.confirm_delete_account"}}
|
{{ctx.Locale.Tr "settings.confirm_delete_account"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
{{svg "octicon-issue-reopened" 16 "tw-mr-1"}}
|
{{svg "octicon-issue-reopened" 16 "tw-mr-1"}}
|
||||||
{{ctx.Locale.Tr "settings.regenerate_token"}}
|
{{ctx.Locale.Tr "settings.regenerate_token"}}
|
||||||
</button>
|
</button>
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-token" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-token" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
|
||||||
{{svg "octicon-trash" 16 "tw-mr-1"}}
|
{{svg "octicon-trash" 16 "tw-mr-1"}}
|
||||||
{{ctx.Locale.Tr "settings.delete_token"}}
|
{{ctx.Locale.Tr "settings.delete_token"}}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="revoke-gitea-oauth2-grant"
|
<button class="ui danger tiny button delete-button" data-modal-id="revoke-gitea-oauth2-grant"
|
||||||
data-url="{{AppSubUrl}}/user/settings/applications/oauth2/{{.ApplicationID}}/revoke/{{.ID}}">
|
data-url="{{AppSubUrl}}/user/settings/applications/oauth2/{{.ApplicationID}}/revoke/{{.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.revoke_key"}}
|
{{ctx.Locale.Tr "settings.revoke_key"}}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-gpg" data-url="{{$.Link}}/delete?type=gpg" data-id="{{.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-gpg" data-url="{{$.Link}}/delete?type=gpg" data-id="{{.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
{{if and (not .Verified) (ne $.VerifyingID .KeyID)}}
|
{{if and (not .Verified) (ne $.VerifyingID .KeyID)}}
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
<button class="ui primary button">
|
<button class="ui primary button">
|
||||||
{{ctx.Locale.Tr "settings.gpg_key_verify"}}
|
{{ctx.Locale.Tr "settings.gpg_key_verify"}}
|
||||||
</button>
|
</button>
|
||||||
<a class="ui red button" href="{{$.Link}}">
|
<a class="ui danger button" href="{{$.Link}}">
|
||||||
{{ctx.Locale.Tr "settings.cancel"}}
|
{{ctx.Locale.Tr "settings.cancel"}}
|
||||||
</a>
|
</a>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-principal" data-url="{{$.Link}}/delete?type=principal" data-id="{{.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-principal" data-url="{{$.Link}}/delete?type=principal" data-id="{{.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui red tiny button delete-button{{if index $.ExternalKeys $index}} disabled{{end}}" data-modal-id="delete-ssh" data-url="{{$.Link}}/delete?type=ssh" data-id="{{.ID}}"{{if index $.ExternalKeys $index}} title="{{ctx.Locale.Tr "settings.ssh_externally_managed"}}"{{end}}>
|
<button class="ui danger tiny button delete-button{{if index $.ExternalKeys $index}} disabled{{end}}" data-modal-id="delete-ssh" data-url="{{$.Link}}/delete?type=ssh" data-id="{{.ID}}"{{if index $.ExternalKeys $index}} title="{{ctx.Locale.Tr "settings.ssh_externally_managed"}}"{{end}}>
|
||||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
{{if and (not .Verified) (ne $.VerifyingFingerprint .Fingerprint)}}
|
{{if and (not .Verified) (ne $.VerifyingFingerprint .Fingerprint)}}
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
<button class="ui primary button">
|
<button class="ui primary button">
|
||||||
{{ctx.Locale.Tr "settings.ssh_key_verify"}}
|
{{ctx.Locale.Tr "settings.ssh_key_verify"}}
|
||||||
</button>
|
</button>
|
||||||
<a class="ui red button" href="{{$.Link}}">
|
<a class="ui danger button" href="{{$.Link}}">
|
||||||
{{ctx.Locale.Tr "settings.cancel"}}
|
{{ctx.Locale.Tr "settings.cancel"}}
|
||||||
</a>
|
</a>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<form>
|
<form>
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<button class="ui red button delete-button" data-modal-id="leave-organization"
|
<button class="ui danger button delete-button" data-modal-id="leave-organization"
|
||||||
data-url="{{.OrganisationLink}}/members/action/leave" data-datauid="{{$.SignedUser.ID}}"
|
data-url="{{.OrganisationLink}}/members/action/leave" data-datauid="{{$.SignedUser.ID}}"
|
||||||
data-name="{{$.SignedUser.DisplayName}}"
|
data-name="{{$.SignedUser.DisplayName}}"
|
||||||
data-data-organization-name="{{.DisplayName}}">{{ctx.Locale.Tr "org.members.leave"}}
|
data-data-organization-name="{{.DisplayName}}">{{ctx.Locale.Tr "org.members.leave"}}
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>
|
<button class="ui primary button">{{ctx.Locale.Tr "settings.update_avatar"}}</button>
|
||||||
<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>
|
<button class="ui danger button link-action" data-url="{{.Link}}/avatar/delete">{{ctx.Locale.Tr "settings.delete_current_avatar"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if $.allowDelete}}
|
{{if $.allowDelete}}
|
||||||
<button class="ui button red show-modal tw-p-2" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{ctx.Locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
<button class="ui button danger show-modal tw-p-2" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{ctx.Locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
||||||
<div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
|
<div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label">{{ctx.Locale.Tr "repo.delete_preexisting"}}</span>
|
<span class="label">{{ctx.Locale.Tr "repo.delete_preexisting"}}</span>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-account-link" data-url="{{AppSubUrl}}/user/settings/security/account_link" data-id="{{$loginSource.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-account-link" data-url="{{AppSubUrl}}/user/settings/security/account_link" data-id="{{$loginSource.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
</button>
|
</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
</form>
|
</form>
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-openid" data-url="{{AppSubUrl}}/user/settings/security/openid/delete" data-id="{{.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-openid" data-url="{{AppSubUrl}}/user/settings/security/openid/delete" data-id="{{.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<form class="ui form" action="{{AppSubUrl}}/user/settings/security/two_factor/disable" method="post" enctype="multipart/form-data" id="disable-form">
|
<form class="ui form" action="{{AppSubUrl}}/user/settings/security/two_factor/disable" method="post" enctype="multipart/form-data" id="disable-form">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<p>{{ctx.Locale.Tr "settings.twofa_disable_note"}}</p>
|
<p>{{ctx.Locale.Tr "settings.twofa_disable_note"}}</p>
|
||||||
<button class="ui red button delete-button" data-modal-id="disable-twofa" data-type="form" data-form="#disable-form">{{ctx.Locale.Tr "settings.twofa_disable"}}</button>
|
<button class="ui danger button delete-button" data-modal-id="disable-twofa" data-type="form" data-form="#disable-form">{{ctx.Locale.Tr "settings.twofa_disable"}}</button>
|
||||||
</form>
|
</form>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{/* The recovery tip is there as a means of encouraging a user to enroll */}}
|
{{/* The recovery tip is there as a means of encouraging a user to enroll */}}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-item-trailing">
|
<div class="flex-item-trailing">
|
||||||
<button class="ui red tiny button delete-button" data-modal-id="delete-registration" data-url="{{$.Link}}/webauthn/delete" data-id="{{.ID}}">
|
<button class="ui danger tiny button delete-button" data-modal-id="delete-registration" data-url="{{$.Link}}/webauthn/delete" data-id="{{.ID}}">
|
||||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
mergeButtonStyleClass() {
|
mergeButtonStyleClass() {
|
||||||
if (this.mergeForm.allOverridableChecksOk) return 'primary';
|
if (this.mergeForm.allOverridableChecksOk) return 'primary';
|
||||||
return this.autoMergeWhenSucceed ? 'primary' : 'red';
|
return this.autoMergeWhenSucceed ? 'primary' : 'danger';
|
||||||
},
|
},
|
||||||
forceMerge() {
|
forceMerge() {
|
||||||
return this.mergeForm.canMergeNow && !this.mergeForm.allOverridableChecksOk;
|
return this.mergeForm.canMergeNow && !this.mergeForm.allOverridableChecksOk;
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
||||||
|
|
||||||
<div v-if="!showActionForm" class="tw-flex">
|
<div v-if="!showActionForm" class="tw-flex">
|
||||||
<!-- the merge button -->
|
<!-- the merge button -->
|
||||||
<div class="ui buttons merge-button" :class="[mergeForm.emptyCommit ? 'grey' : mergeForm.allOverridableChecksOk ? 'primary' : 'red']" @click="toggleActionForm(true)">
|
<div class="ui buttons merge-button" :class="[mergeForm.emptyCommit ? 'grey' : mergeForm.allOverridableChecksOk ? 'primary' : 'danger']" @click="toggleActionForm(true)">
|
||||||
<button class="ui button">
|
<button class="ui button">
|
||||||
<svg-icon name="octicon-git-merge"/>
|
<svg-icon name="octicon-git-merge"/>
|
||||||
<span class="button-text">
|
<span class="button-text">
|
||||||
|
|
|
@ -430,7 +430,7 @@ export function initRepositoryActionView() {
|
||||||
<button class="ui basic small compact button primary" @click="approveRun()" v-if="run.canApprove">
|
<button class="ui basic small compact button primary" @click="approveRun()" v-if="run.canApprove">
|
||||||
{{ locale.approve }}
|
{{ locale.approve }}
|
||||||
</button>
|
</button>
|
||||||
<button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel">
|
<button class="ui basic small compact button danger" @click="cancelRun()" v-else-if="run.canCancel">
|
||||||
{{ locale.cancel }}
|
{{ locale.cancel }}
|
||||||
</button>
|
</button>
|
||||||
<button class="ui basic small compact button tw-mr-0 tw-whitespace-nowrap link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
|
<button class="ui basic small compact button tw-mr-0 tw-whitespace-nowrap link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
|
||||||
|
|
Loading…
Add table
Reference in a new issue