Refactor delete_modal_actions template and use it for project column related actions (#24097)
Co-Author: @wxiaoguang
This PR is to fix
https://github.com/go-gitea/gitea/issues/23318#issuecomment-1506275446 .
The way to fix this in this PR is to use `delete_modal_actions.tmpl`
here both to fix this issue and keep ui consistency (as suggested by
[TODO
here](4299c3b7db/templates/projects/view.tmpl (L161)
))
And this PR also refactors `delete_modal_actions.tmpl` and its related
styles, and use the template for more modal actions:
1. Added template attributes:
* locale
* ModalButtonStyle: "yes" (default) or "confirm"
* ModalButtonCancelText
* ModalButtonOkText
2. Rename `delete_modal_actions.tmpl` template to
`modal_actions_confirm.tmpl` because it is not only used for action
modals deletion now.
3. Refactored css related to modals into `web_src/css/modules/modal.css`
and improved the styles.
4. Also use the template for PR deletion modal and remove issue
dependency modal.
5. Some modals should also use the template, but not sure how to open
them, so mark these modal actions by `{{/* TODO: Convert to
base/modal_actions_confirm */}}`
After (Also tested on arc green):
Hovering on the left buttons
<img width="711" alt="Screen Shot 2023-04-23 at 15 17 12"
src="https://user-images.githubusercontent.com/17645053/233825650-76307e65-9255-44bb-80e8-7062f58ead1b.png">
<img width="786" alt="Screen Shot 2023-04-23 at 15 17 21"
src="https://user-images.githubusercontent.com/17645053/233825652-4dc6f7d1-a180-49fb-a468-d60950eaee0d.png">
Test for functionalities:
https://user-images.githubusercontent.com/17645053/233826857-76376fda-022c-42d0-b0f3-339c17ca4e59.mov
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
5e389228f6
commit
476a043a5f
|
@ -462,6 +462,8 @@ team_invite.text_3 = Note: This invitation was intended for %[1]s. If you were n
|
||||||
[modal]
|
[modal]
|
||||||
yes = Yes
|
yes = Yes
|
||||||
no = No
|
no = No
|
||||||
|
confirm = Confirm
|
||||||
|
cancel = Cancel
|
||||||
modify = Update
|
modify = Update
|
||||||
|
|
||||||
[form]
|
[form]
|
||||||
|
|
|
@ -440,14 +440,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "admin.auths.delete_auth_title"}}
|
{{.locale.Tr "admin.auths.delete_auth_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "admin.auths.delete_auth_desc"}}</p>
|
<p>{{.locale.Tr "admin.auths.delete_auth_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -73,11 +73,11 @@
|
||||||
|
|
||||||
{{template "base/paginate" .}}
|
{{template "base/paginate" .}}
|
||||||
|
|
||||||
<div class="ui basic modal" id="change-email-modal">
|
<div class="ui gitea-confirm-modal modal" id="change-email-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{.locale.Tr "admin.emails.change_email_header"}}
|
{{.locale.Tr "admin.emails.change_email_header"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<p class="center">{{.locale.Tr "admin.emails.change_email_text"}}</p>
|
<p class="center">{{.locale.Tr "admin.emails.change_email_text"}}</p>
|
||||||
|
|
||||||
<form class="ui form" id="email-action-form" action="{{AppSubUrl}}/admin/emails/activate" method="post">
|
<form class="ui form" id="email-action-form" action="{{AppSubUrl}}/admin/emails/activate" method="post">
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
<input type="hidden" id="form-activate" name="activate" value="" required>
|
<input type="hidden" id="form-activate" name="activate" value="" required>
|
||||||
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -37,15 +37,14 @@
|
||||||
{{template "admin/process" .}}
|
{{template "admin/process" .}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{.locale.Tr "admin.monitor.process.cancel"}}
|
{{.locale.Tr "admin.monitor.process.cancel"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
||||||
<p>{{$.locale.Tr "admin.monitor.process.cancel_desc"}}</p>
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -72,7 +72,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui modal admin" id="detail-modal">
|
<div class="ui modal admin" id="detail-modal">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
<div class="header">{{$.locale.Tr "admin.notices.view_detail_header"}}</div>
|
<div class="header">{{$.locale.Tr "admin.notices.view_detail_header"}}</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="sub header"></div>
|
<div class="sub header"></div>
|
||||||
|
|
|
@ -80,14 +80,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "packages.settings.delete"}}
|
{{.locale.Tr "packages.settings.delete"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{.locale.Tr "packages.settings.delete.notice" `<span class="name"></span>` `<span class="dataVersion"></span>` | Safe}}
|
{{.locale.Tr "packages.settings.delete.notice" `<span class="name"></span>` `<span class="dataVersion"></span>` | Safe}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -181,16 +181,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{.locale.Tr "admin.monitor.queue.pool.cancel"}}
|
{{.locale.Tr "admin.monitor.queue.pool.cancel"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "admin.monitor.queue.pool.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "admin.monitor.queue.pool.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
||||||
<p>{{$.locale.Tr "admin.monitor.queue.pool.cancel_desc"}}</p>
|
<p>{{$.locale.Tr "admin.monitor.queue.pool.cancel_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -95,8 +95,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.settings.delete"}}
|
{{.locale.Tr "repo.settings.delete"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -105,6 +105,6 @@
|
||||||
{{.locale.Tr "repo.settings.delete_notices_2" `<span class="name"></span>` | Safe}}<br>
|
{{.locale.Tr "repo.settings.delete_notices_2" `<span class="name"></span>` | Safe}}<br>
|
||||||
{{.locale.Tr "repo.settings.delete_notices_fork_1"}}<br>
|
{{.locale.Tr "repo.settings.delete_notices_fork_1"}}<br>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -29,8 +29,7 @@
|
||||||
<span class="name">{{$dir}}</span>
|
<span class="name">{{$dir}}</span>
|
||||||
<div class="right floated content">
|
<div class="right floated content">
|
||||||
<button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button>
|
<button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button>
|
||||||
<div class="ui basic modal" id="adopt-unadopted-modal-{{$dirI}}">
|
<div class="ui gitea-confirm-modal modal" id="adopt-unadopted-modal-{{$dirI}}">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
|
<span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,7 +42,7 @@
|
||||||
<input type="hidden" name="action" value="adopt">
|
<input type="hidden" name="action" value="adopt">
|
||||||
<input type="hidden" name="q" value="{{$.Keyword}}">
|
<input type="hidden" name="q" value="{{$.Keyword}}">
|
||||||
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
||||||
<div class="actions">
|
<div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}}
|
||||||
<button class="ui red basic inverted cancel button">
|
<button class="ui red basic inverted cancel button">
|
||||||
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
||||||
{{$.locale.Tr "modal.no"}}
|
{{$.locale.Tr "modal.no"}}
|
||||||
|
@ -56,8 +55,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
<button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
||||||
<div class="ui basic modal" id="delete-unadopted-modal-{{$dirI}}">
|
<div class="ui gitea-confirm-modal modal" id="delete-unadopted-modal-{{$dirI}}">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>
|
<span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,7 +68,7 @@
|
||||||
<input type="hidden" name="action" value="delete">
|
<input type="hidden" name="action" value="delete">
|
||||||
<input type="hidden" name="q" value="{{$.Keyword}}">
|
<input type="hidden" name="q" value="{{$.Keyword}}">
|
||||||
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
||||||
<div class="actions">
|
<div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}}
|
||||||
<button class="ui red basic inverted cancel button">
|
<button class="ui red basic inverted cancel button">
|
||||||
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
||||||
{{$.locale.Tr "modal.no"}}
|
{{$.locale.Tr "modal.no"}}
|
||||||
|
|
|
@ -18,16 +18,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{.locale.Tr "admin.monitor.process.cancel"}}
|
{{.locale.Tr "admin.monitor.process.cancel"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
||||||
<p>{{$.locale.Tr "admin.monitor.process.cancel_desc"}}</p>
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -196,8 +196,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-user-modal">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-user-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.delete_account_title"}}
|
{{.locale.Tr "settings.delete_account_title"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -213,7 +213,7 @@
|
||||||
</div>
|
</div>
|
||||||
<p class="help">{{.locale.Tr "admin.users.purge_help"}}</p>
|
<p class="help">{{.locale.Tr "admin.users.purge_help"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<div class="actions">
|
|
||||||
<button class="ui red basic inverted cancel button">
|
|
||||||
{{svg "octicon-x"}}
|
|
||||||
{{.locale.Tr "modal.no"}}
|
|
||||||
</button>
|
|
||||||
<button class="ui green basic inverted ok button">
|
|
||||||
{{svg "octicon-check"}}
|
|
||||||
{{.locale.Tr "modal.yes"}}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
21
templates/base/modal_actions_confirm.tmpl
Normal file
21
templates/base/modal_actions_confirm.tmpl
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{{/*
|
||||||
|
Template Attributes:
|
||||||
|
* locale
|
||||||
|
* ModalButtonStyle: "yes" (default) or "confirm"
|
||||||
|
* ModalButtonCancelText
|
||||||
|
* ModalButtonOkText
|
||||||
|
|
||||||
|
The ".ok.button" and ".cancel.button" selectors are also used by Fomantic Modal internally
|
||||||
|
*/}}
|
||||||
|
<div class="actions">
|
||||||
|
{{$textNegitive := .locale.Tr "modal.no"}}
|
||||||
|
{{$textPositive := .locale.Tr "modal.yes"}}
|
||||||
|
{{if eq .ModalButtonStyle "confirm"}}
|
||||||
|
{{$textNegitive = .locale.Tr "modal.cancel"}}
|
||||||
|
{{$textPositive = .locale.Tr "modal.confirm"}}
|
||||||
|
{{end}}
|
||||||
|
{{if .ModalButtonCancelText}}{{$textNegitive = .ModalButtonCancelText}}{{end}}
|
||||||
|
{{if .ModalButtonOkText}}{{$textPositive = .ModalButtonOkText}}{{end}}
|
||||||
|
<button class="ui red cancel button">{{svg "octicon-x"}} {{$textNegitive}}</button>
|
||||||
|
<button class="ui green ok button">{{svg "octicon-check"}} {{$textPositive}}</button>
|
||||||
|
</div>
|
|
@ -81,25 +81,23 @@
|
||||||
{{template "base/paginate" .}}
|
{{template "base/paginate" .}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="leave-organization">
|
<div class="ui gitea-confirm-modal delete modal" id="leave-organization">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{$.locale.Tr "org.members.leave"}}
|
{{$.locale.Tr "org.members.leave"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="remove-organization-member">
|
<div class="ui gitea-confirm-modal delete modal" id="remove-organization-member">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{$.locale.Tr "org.members.remove"}}
|
{{$.locale.Tr "org.members.remove"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "org.members.remove.detail" `<span class="name"></span>` `<span class="dataOrganizationName"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "org.members.remove.detail" `<span class="name"></span>` `<span class="dataOrganizationName"></span>` | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -29,14 +29,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "org.settings.delete_org_title"}}
|
{{.locale.Tr "org.settings.delete_org_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "org.settings.delete_org_desc"}}</p>
|
<p>{{.locale.Tr "org.settings.delete_org_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -64,14 +64,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="remove-team-member">
|
<div class="ui gitea-confirm-modal delete modal" id="remove-team-member">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{$.locale.Tr "org.members.remove"}}
|
{{$.locale.Tr "org.members.remove"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "org.members.remove.detail" `<span class="name"></span>` `<span class="dataTeamName"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "org.members.remove.detail" `<span class="name"></span>` `<span class="dataTeamName"></span>` | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -148,14 +148,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "org.teams.delete_team_title"}}
|
{{.locale.Tr "org.teams.delete_team_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "org.teams.delete_team_desc"}}</p>
|
<p>{{.locale.Tr "org.teams.delete_team_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -64,26 +64,26 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="org-team-remove-all-repo">
|
<div class="ui gitea-confirm-modal delete modal" id="org-team-remove-all-repo">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "org.teams.remove_all_repos_title"}}
|
{{.locale.Tr "org.teams.remove_all_repos_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "org.teams.remove_all_repos_desc"}}</p>
|
<p>{{.locale.Tr "org.teams.remove_all_repos_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic addall modal" id="org-team-add-all-repo">
|
<div class="ui gitea-confirm-modal addall modal" id="org-team-add-all-repo">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-globe"}}
|
{{svg "octicon-globe"}}
|
||||||
{{.locale.Tr "org.teams.add_all_repos_title"}}
|
{{.locale.Tr "org.teams.add_all_repos_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "org.teams.add_all_repos_desc"}}</p>
|
<p>{{.locale.Tr "org.teams.add_all_repos_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -83,13 +83,12 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="leave-team-sidebar">
|
<div class="ui gitea-confirm-modal delete modal" id="leave-team-sidebar">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{$.locale.Tr "org.teams.leave"}}
|
{{$.locale.Tr "org.teams.leave"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -43,14 +43,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="leave-team">
|
<div class="ui gitea-confirm-modal delete modal" id="leave-team">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{$.locale.Tr "org.teams.leave"}}
|
{{$.locale.Tr "org.teams.leave"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<form class="ui form" action="{{.Link}}" method="post">
|
<form class="ui form" action="{{.Link}}" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="action" value="delete">
|
<input type="hidden" name="action" value="delete">
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -76,14 +76,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if $.CanWriteProjects}}
|
{{if $.CanWriteProjects}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.projects.deletion"}}
|
{{.locale.Tr "repo.projects.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -99,7 +99,6 @@
|
||||||
data-modal="#default-project-board-modal-{{.ID}}"
|
data-modal="#default-project-board-modal-{{.ID}}"
|
||||||
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.set_default"}}"
|
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.set_default"}}"
|
||||||
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.set_default_desc"}}"
|
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.set_default_desc"}}"
|
||||||
data-modal-default-project-board-submit="{{$.locale.Tr "repo.projects.column.set_default"}}"
|
|
||||||
data-url="{{$.Link}}/{{.ID}}/default">
|
data-url="{{$.Link}}/{{.ID}}/default">
|
||||||
{{svg "octicon-pin"}}
|
{{svg "octicon-pin"}}
|
||||||
{{$.locale.Tr "repo.projects.column.set_default"}}
|
{{$.locale.Tr "repo.projects.column.set_default"}}
|
||||||
|
@ -109,13 +108,15 @@
|
||||||
data-modal="#default-project-board-modal-{{.ID}}"
|
data-modal="#default-project-board-modal-{{.ID}}"
|
||||||
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.unset_default"}}"
|
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.unset_default"}}"
|
||||||
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.unset_default_desc"}}"
|
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.unset_default_desc"}}"
|
||||||
data-modal-default-project-board-submit="{{$.locale.Tr "repo.projects.column.unset_default"}}"
|
|
||||||
data-url="{{$.Link}}/{{.ID}}/unsetdefault">
|
data-url="{{$.Link}}/{{.ID}}/unsetdefault">
|
||||||
{{svg "octicon-pin"}}
|
{{svg "octicon-pin"}}
|
||||||
{{$.locale.Tr "repo.projects.column.unset_default"}}
|
{{$.locale.Tr "repo.projects.column.unset_default"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="item show-modal button" data-modal="#delete-board-modal-{{.ID}}">
|
<a class="item show-modal button show-delete-column-modal"
|
||||||
|
data-modal="#delete-board-modal-{{.ID}}"
|
||||||
|
data-url="{{$.Link}}/{{.ID}}"
|
||||||
|
>
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{$.locale.Tr "repo.projects.column.delete"}}
|
{{$.locale.Tr "repo.projects.column.delete"}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -149,32 +150,26 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui basic modal default-project-board-modal" id="default-project-board-modal-{{.ID}}">
|
<div class="ui gitea-confirm-modal modal default-project-board-modal" id="default-project-board-modal-{{.ID}}">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
<span id="default-project-board-header"></span>
|
<span id="default-project-board-header"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<label id="default-project-board-content"></label>
|
<label id="default-project-board-content"></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="text right actions">
|
{{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonStyle" "confirm")}}
|
||||||
<button class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</button>
|
|
||||||
<button class="ui primary button default-project-board-button" id="default-project-board-submit"></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui basic modal" id="delete-board-modal-{{.ID}}">
|
<div class="ui gitea-confirm-modal modal" id="delete-board-modal-{{.ID}}">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{$.locale.Tr "repo.projects.column.delete"}}
|
{{$.locale.Tr "repo.projects.column.delete"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<label>
|
<label>
|
||||||
{{$.locale.Tr "repo.projects.column.deletion_desc"}}
|
{{$.locale.Tr "repo.projects.column.deletion_desc"}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="text right actions">{{/* TODO: convert to base/delete_modal_actions.tmpl */}}
|
{{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonStyle" "confirm")}}
|
||||||
<button class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</button>
|
|
||||||
<button class="ui red button delete-project-board" data-url="{{$.Link}}/{{.ID}}">{{$.locale.Tr "repo.projects.column.delete"}}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -277,14 +272,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if .CanWriteProjects}}
|
{{if .CanWriteProjects}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.projects.deletion"}}
|
{{.locale.Tr "repo.projects.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -147,15 +147,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.branch.delete_html"}} <span class="name"></span>
|
{{.locale.Tr "repo.branch.delete_html"}} <span class="name"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.branch.delete_desc" | Str2html}}</p>
|
<p>{{.locale.Tr "repo.branch.delete_desc" | Str2html}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small modal" id="create-branch-modal">
|
<div class="ui small modal" id="create-branch-modal">
|
||||||
|
|
|
@ -59,11 +59,11 @@
|
||||||
data-modal-cherry-pick-header="{{$.locale.Tr "repo.commit.cherry-pick-header" (ShortSha .CommitID)}}"
|
data-modal-cherry-pick-header="{{$.locale.Tr "repo.commit.cherry-pick-header" (ShortSha .CommitID)}}"
|
||||||
data-modal-cherry-pick-content="{{$.locale.Tr "repo.commit.cherry-pick-content"}}"
|
data-modal-cherry-pick-content="{{$.locale.Tr "repo.commit.cherry-pick-content"}}"
|
||||||
data-modal-cherry-pick-submit="{{.locale.Tr "repo.commit.cherry-pick"}}">{{.locale.Tr "repo.commit.cherry-pick"}}</div>
|
data-modal-cherry-pick-submit="{{.locale.Tr "repo.commit.cherry-pick"}}">{{.locale.Tr "repo.commit.cherry-pick"}}</div>
|
||||||
<div class="ui basic modal" id="cherry-pick-modal">
|
<div class="ui gitea-confirm-modal modal" id="cherry-pick-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
<span id="cherry-pick-header"></span>
|
<span id="cherry-pick-header"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<p id="cherry-pick-content" class="branch-dropdown"></p>
|
<p id="cherry-pick-content" class="branch-dropdown"></p>
|
||||||
{{template "repo/branch_dropdown" dict "root" .
|
{{template "repo/branch_dropdown" dict "root" .
|
||||||
"noTag" true "disableCreateBranch" true
|
"noTag" true "disableCreateBranch" true
|
||||||
|
|
|
@ -56,8 +56,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="ui small basic modal" id="edit-empty-content-modal">
|
<div class="ui gitea-confirm-modal modal" id="edit-empty-content-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-file"}}
|
{{svg "octicon-file"}}
|
||||||
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic modal" id="edit-empty-content-modal">
|
<div class="ui gitea-confirm-modal modal" id="edit-empty-content-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-file"}}
|
{{svg "octicon-file"}}
|
||||||
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -118,7 +118,6 @@
|
||||||
{{svg "octicon-repo-forked"}}{{$.locale.Tr "repo.fork"}}
|
{{svg "octicon-repo-forked"}}{{$.locale.Tr "repo.fork"}}
|
||||||
</a>
|
</a>
|
||||||
<div class="ui small modal" id="fork-repo-modal">
|
<div class="ui small modal" id="fork-repo-modal">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
{{$.locale.Tr "repo.already_forked" .Name}}
|
{{$.locale.Tr "repo.already_forked" .Name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.issues.label_deletion"}}
|
{{.locale.Tr "repo.issues.label_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.issues.label_deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.issues.label_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small edit-label modal">
|
<div class="ui small edit-label modal">
|
||||||
|
|
|
@ -116,15 +116,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if or .CanWriteIssues .CanWritePulls}}
|
{{if or .CanWriteIssues .CanWritePulls}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.milestones.deletion"}}
|
{{.locale.Tr "repo.milestones.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.milestones.deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.milestones.deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -197,13 +197,13 @@
|
||||||
<span class="no-content">{{.locale.Tr "repo.issues.no_content"}}</span>
|
<span class="no-content">{{.locale.Tr "repo.issues.no_content"}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.branch.delete" .HeadTarget}}
|
{{.locale.Tr "repo.branch.delete" .HeadTarget}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.branch.delete_desc" | Str2html}}</p>
|
<p>{{.locale.Tr "repo.branch.delete_desc" | Str2html}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{.ctxData.CsrfTokenHtml}}
|
{{.ctxData.CsrfTokenHtml}}
|
||||||
</form>
|
</form>
|
||||||
<div class="header">{{.ctxData.locale.Tr "repo.issues.del_time"}}</div>
|
<div class="header">{{.ctxData.locale.Tr "repo.issues.del_time"}}</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
<button class="ui icon button compact mini issue-delete-time" data-id="{{.comment.Time.ID}}" data-tooltip-content="{{.ctxData.locale.Tr "repo.issues.del_time"}}">
|
<button class="ui icon button compact mini issue-delete-time" data-id="{{.comment.Time.ID}}" data-tooltip-content="{{.ctxData.locale.Tr "repo.issues.del_time"}}">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
|
|
|
@ -542,8 +542,8 @@
|
||||||
{{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
|
{{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
|
||||||
<input type="hidden" id="crossRepoSearch" value="{{.AllowCrossRepositoryDependencies}}">
|
<input type="hidden" id="crossRepoSearch" value="{{.AllowCrossRepositoryDependencies}}">
|
||||||
|
|
||||||
<div class="ui basic modal remove-dependency">
|
<div class="ui gitea-confirm-modal modal remove-dependency">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.issues.dependency.remove_header"}}
|
{{.locale.Tr "repo.issues.dependency.remove_header"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -559,16 +559,9 @@
|
||||||
{{.locale.Tr "repo.issues.dependency.issue_remove_text"}}
|
{{.locale.Tr "repo.issues.dependency.issue_remove_text"}}
|
||||||
{{end}}</p>
|
{{end}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
{{$ModalButtonCancelText := .locale.Tr "repo.issues.dependency.cancel"}}
|
||||||
<button class="ui red cancel inverted button">
|
{{$ModalButtonOkText := .locale.Tr "repo.issues.dependency.remove"}}
|
||||||
{{svg "octicon-x"}}
|
{{template "base/modal_actions_confirm" (dict "." . "ModalButtonCancelText" $ModalButtonCancelText "ModalButtonOkText" $ModalButtonOkText)}}
|
||||||
{{.locale.Tr "repo.issues.dependency.cancel"}}
|
|
||||||
</button>
|
|
||||||
<button class="ui green ok inverted button">
|
|
||||||
{{svg "octicon-check"}}
|
|
||||||
{{.locale.Tr "repo.issues.dependency.remove"}}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -663,15 +656,15 @@
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.issues.delete"}}
|
{{.locale.Tr "repo.issues.delete"}}
|
||||||
</button>
|
</button>
|
||||||
<div class="ui basic modal" id="delete">
|
<div class="ui gitea-confirm-modal modal" id="delete">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{if .Issue.IsPull}}
|
{{if .Issue.IsPull}}
|
||||||
{{.locale.Tr "repo.pulls.delete.title"}}
|
{{.locale.Tr "repo.pulls.delete.title"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.locale.Tr "repo.issues.delete.title"}}
|
{{.locale.Tr "repo.issues.delete.title"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<p>
|
<p>
|
||||||
{{if .Issue.IsPull}}
|
{{if .Issue.IsPull}}
|
||||||
{{.locale.Tr "repo.pulls.delete.text"}}
|
{{.locale.Tr "repo.pulls.delete.text"}}
|
||||||
|
@ -682,10 +675,7 @@
|
||||||
</div>
|
</div>
|
||||||
<form action="{{.Issue.Link}}/delete" method="post">
|
<form action="{{.Issue.Link}}/delete" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<div class="center actions">
|
{{template "base/modal_actions_confirm" .}}
|
||||||
<button class="ui basic cancel inverted button">{{.locale.Tr "settings.cancel"}}</button>
|
|
||||||
<button class="ui basic red inverted button">{{.locale.Tr "modal.yes"}}</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -78,15 +78,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if .CanWriteProjects}}
|
{{if .CanWriteProjects}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.projects.deletion"}}
|
{{.locale.Tr "repo.projects.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -103,7 +103,6 @@
|
||||||
data-modal="#default-project-board-modal-{{.ID}}"
|
data-modal="#default-project-board-modal-{{.ID}}"
|
||||||
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.set_default"}}"
|
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.set_default"}}"
|
||||||
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.set_default_desc"}}"
|
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.set_default_desc"}}"
|
||||||
data-modal-default-project-board-submit="{{$.locale.Tr "repo.projects.column.set_default"}}"
|
|
||||||
data-type="set_default"
|
data-type="set_default"
|
||||||
data-url="{{$.Link}}/{{.ID}}/default">
|
data-url="{{$.Link}}/{{.ID}}/default">
|
||||||
{{svg "octicon-pin"}}
|
{{svg "octicon-pin"}}
|
||||||
|
@ -114,14 +113,16 @@
|
||||||
data-modal="#default-project-board-modal-{{.ID}}"
|
data-modal="#default-project-board-modal-{{.ID}}"
|
||||||
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.unset_default"}}"
|
data-modal-default-project-board-header="{{$.locale.Tr "repo.projects.column.unset_default"}}"
|
||||||
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.unset_default_desc"}}"
|
data-modal-default-project-board-content="{{$.locale.Tr "repo.projects.column.unset_default_desc"}}"
|
||||||
data-modal-default-project-board-submit="{{$.locale.Tr "repo.projects.column.unset_default"}}"
|
|
||||||
data-type="unset_default"
|
data-type="unset_default"
|
||||||
data-url="{{$.Link}}/{{.ID}}/unsetdefault">
|
data-url="{{$.Link}}/{{.ID}}/unsetdefault">
|
||||||
{{svg "octicon-pin"}}
|
{{svg "octicon-pin"}}
|
||||||
{{$.locale.Tr "repo.projects.column.unset_default"}}
|
{{$.locale.Tr "repo.projects.column.unset_default"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="item show-modal button" data-modal="#delete-board-modal-{{.ID}}">
|
<a class="item show-modal button show-delete-column-modal"
|
||||||
|
data-modal="#delete-board-modal-{{.ID}}"
|
||||||
|
data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}"
|
||||||
|
>
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{$.locale.Tr "repo.projects.column.delete"}}
|
{{$.locale.Tr "repo.projects.column.delete"}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -155,32 +156,26 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui basic modal default-project-board-modal" id="default-project-board-modal-{{.ID}}">
|
<div class="ui gitea-confirm-modal modal default-project-board-modal" id="default-project-board-modal-{{.ID}}">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
<span id="default-project-board-header"></span>
|
<span id="default-project-board-header"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<label id="default-project-board-content"></label>
|
<label id="default-project-board-content"></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="text right actions">
|
{{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonStyle" "confirm")}}
|
||||||
<button class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</button>
|
|
||||||
<button class="ui primary button default-project-board-button" id="default-project-board-submit"></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui basic modal" id="delete-board-modal-{{.ID}}">
|
<div class="ui gitea-confirm-modal modal" id="delete-board-modal-{{.ID}}">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{$.locale.Tr "repo.projects.column.delete"}}
|
{{$.locale.Tr "repo.projects.column.delete"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<label>
|
<label>
|
||||||
{{$.locale.Tr "repo.projects.column.deletion_desc"}}
|
{{$.locale.Tr "repo.projects.column.deletion_desc"}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="text right actions">{{/* TODO: Convert to base/delete_modal_actions.tmpl? */}}
|
{{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonStyle" "confirm")}}
|
||||||
<button class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</button>
|
|
||||||
<button class="ui red button delete-project-board" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}">{{$.locale.Tr "repo.projects.column.delete"}}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -283,15 +278,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if or .CanWriteIssues .CanWritePulls}}
|
{{if or .CanWriteIssues .CanWritePulls}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.projects.deletion"}}
|
{{.locale.Tr "repo.projects.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
|
@ -184,15 +184,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if (and ($.Permission.CanWrite $.UnitTypeCode) .PageIsTagList)}}
|
{{if (and ($.Permission.CanWrite $.UnitTypeCode) .PageIsTagList)}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui header">
|
<div class="header">
|
||||||
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.release.delete_tag"}}
|
{{.locale.Tr "repo.release.delete_tag"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.release.deletion_tag_desc"}}</p>
|
<p>{{.locale.Tr "repo.release.deletion_tag_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
|
@ -138,15 +138,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if .PageIsEditRelease}}
|
{{if .PageIsEditRelease}}
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.release.deletion"}}
|
{{.locale.Tr "repo.release.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.release.deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.release.deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -96,15 +96,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui header">
|
<div class="header">
|
||||||
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.settings.protected_branch_deletion"}}
|
{{.locale.Tr "repo.settings.protected_branch_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.settings.protected_branch_deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.settings.protected_branch_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -112,14 +112,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.settings.collaborator_deletion"}}
|
{{.locale.Tr "repo.settings.collaborator_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.settings.collaborator_deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.settings.collaborator_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -77,14 +77,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.settings.deploy_key_deletion"}}
|
{{.locale.Tr "repo.settings.deploy_key_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.settings.deploy_key_deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.settings.deploy_key_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -40,17 +40,17 @@
|
||||||
</table>
|
</table>
|
||||||
{{template "base/paginate" .}}
|
{{template "base/paginate" .}}
|
||||||
{{range .LFSFiles}}
|
{{range .LFSFiles}}
|
||||||
<div class="ui basic modal" id="delete-{{.Oid}}">
|
<div class="ui gitea-confirm-modal modal" id="delete-{{.Oid}}">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{$.locale.Tr "repo.settings.lfs_delete" .Oid}}
|
{{$.locale.Tr "repo.settings.lfs_delete" .Oid}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<p>
|
<p>
|
||||||
{{$.locale.Tr "repo.settings.lfs_delete_warning"}}
|
{{$.locale.Tr "repo.settings.lfs_delete_warning"}}
|
||||||
</p>
|
</p>
|
||||||
<form class="ui form" action="{{$.Link}}/delete/{{.Oid}}" method="post">
|
<form class="ui form" action="{{$.Link}}/delete/{{.Oid}}" method="post">
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<div class="center actions">{{/* TODO: Convert to base/delete_modal_actions */}}
|
<div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}}
|
||||||
<button class="ui basic cancel inverted button">{{$.locale.Tr "settings.cancel"}}</button>
|
<button class="ui basic cancel inverted button">{{$.locale.Tr "settings.cancel"}}</button>
|
||||||
<button class="ui basic inverted yellow button">{{$.locale.Tr "modal.yes"}}</button>
|
<button class="ui basic inverted yellow button">{{$.locale.Tr "modal.yes"}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -967,15 +967,15 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if not .Repository.IsMirror}}
|
{{if not .Repository.IsMirror}}
|
||||||
<div class="ui basic modal" id="archive-repo-modal">
|
<div class="ui gitea-confirm-modal modal" id="archive-repo-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{if .Repository.IsArchived}}
|
{{if .Repository.IsArchived}}
|
||||||
{{.locale.Tr "repo.settings.unarchive.header"}}
|
{{.locale.Tr "repo.settings.unarchive.header"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.locale.Tr "repo.settings.archive.header"}}
|
{{.locale.Tr "repo.settings.archive.header"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content center">
|
<div class="content">
|
||||||
<p>
|
<p>
|
||||||
{{if .Repository.IsArchived}}
|
{{if .Repository.IsArchived}}
|
||||||
{{.locale.Tr "repo.settings.unarchive.text"}}
|
{{.locale.Tr "repo.settings.unarchive.text"}}
|
||||||
|
@ -988,7 +988,7 @@
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
|
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
|
||||||
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.settings.webhook_deletion"}}
|
{{.locale.Tr "repo.settings.webhook_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.settings.webhook_deletion_desc"}}</p>
|
<p>{{.locale.Tr "repo.settings.webhook_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -99,15 +99,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "repo.wiki.delete_page_button"}}
|
{{.locale.Tr "repo.wiki.delete_page_button"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "repo.wiki.delete_page_notice_1" ($title|Escape) | Safe}}</p>
|
<p>{{.locale.Tr "repo.wiki.delete_page_notice_1" ($title|Escape) | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -89,14 +89,14 @@
|
||||||
</table>
|
</table>
|
||||||
{{template "base/paginate" .}}
|
{{template "base/paginate" .}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="runner-delete-modal">
|
<div class="ui gitea-confirm-modal delete modal" id="runner-delete-modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "actions.runners.delete_runner_header"}}
|
{{.locale.Tr "actions.runners.delete_runner_header"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "actions.runners.delete_runner_notice" | Safe}}</p>
|
<p>{{.locale.Tr "actions.runners.delete_runner_notice" | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -56,13 +56,13 @@
|
||||||
{{.locale.Tr "secrets.none"}}
|
{{.locale.Tr "secrets.none"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui header">
|
<div class="header">
|
||||||
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "secrets.deletion"}}
|
{{.locale.Tr "secrets.deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "secrets.deletion.description"}}</p>
|
<p>{{.locale.Tr "secrets.deletion.description"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -161,26 +161,26 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-email">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-email">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.email_deletion"}}
|
{{.locale.Tr "settings.email_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.email_deletion_desc"}}</p>
|
<p>{{.locale.Tr "settings.email_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-account">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-account">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.delete_account_title"}}
|
{{.locale.Tr "settings.delete_account_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.delete_account_desc"}}</p>
|
<p>{{.locale.Tr "settings.delete_account_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -268,8 +268,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-token">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-token">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.access_token_deletion"}}
|
{{.locale.Tr "settings.access_token_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -277,7 +277,7 @@
|
||||||
<p>{{.locale.Tr "settings.access_token_deletion_desc"}}</p>
|
<p>{{.locale.Tr "settings.access_token_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="actions">{{/* TODO: Convert to base/delete_modal_actions.tmpl */}}
|
<div class="actions">{{/* TODO: Convert to base/modal_actions_confirm.tmpl */}}
|
||||||
<button class="ui green basic inverted cancel button">
|
<button class="ui green basic inverted cancel button">
|
||||||
{{svg "octicon-x"}}
|
{{svg "octicon-x"}}
|
||||||
{{.locale.Tr "settings.access_token_deletion_cancel_action"}}
|
{{.locale.Tr "settings.access_token_deletion_cancel_action"}}
|
||||||
|
|
|
@ -47,13 +47,13 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="remove-gitea-oauth2-application">
|
<div class="ui gitea-confirm-modal delete modal" id="remove-gitea-oauth2-application">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.remove_oauth2_application"}}
|
{{.locale.Tr "settings.remove_oauth2_application"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.oauth2_application_remove_description"}}</p>
|
<p>{{.locale.Tr "settings.oauth2_application_remove_description"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,13 +28,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="revoke-gitea-oauth2-grant">
|
<div class="ui gitea-confirm-modal delete modal" id="revoke-gitea-oauth2-grant">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-shield" 16 "gt-mr-2"}}
|
{{svg "octicon-shield" 16 "gt-mr-2"}}
|
||||||
{{.locale.Tr "settings.revoke_oauth2_grant"}}
|
{{.locale.Tr "settings.revoke_oauth2_grant"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.revoke_oauth2_grant_description"}}</p>
|
<p>{{.locale.Tr "settings.revoke_oauth2_grant_description"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -111,13 +111,13 @@
|
||||||
<br>
|
<br>
|
||||||
<p>{{.locale.Tr "settings.gpg_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/about-commit-signature-verification#gpg-commit-signature-verification" | Str2html}}</p>
|
<p>{{.locale.Tr "settings.gpg_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/about-commit-signature-verification#gpg-commit-signature-verification" | Str2html}}</p>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-gpg">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-gpg">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.gpg_key_deletion"}}
|
{{.locale.Tr "settings.gpg_key_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.gpg_key_deletion_desc"}}</p>
|
<p>{{.locale.Tr "settings.gpg_key_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -54,14 +54,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-principal">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-principal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.ssh_principal_deletion"}}
|
{{.locale.Tr "settings.ssh_principal_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.ssh_principal_deletion_desc"}}</p>
|
<p>{{.locale.Tr "settings.ssh_principal_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -100,13 +100,13 @@
|
||||||
<br>
|
<br>
|
||||||
<p>{{.locale.Tr "settings.ssh_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh" | Str2html}}</p>
|
<p>{{.locale.Tr "settings.ssh_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh" | Str2html}}</p>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-ssh">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-ssh">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.ssh_key_deletion"}}
|
{{.locale.Tr "settings.ssh_key_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.ssh_key_deletion_desc"}}</p>
|
<p>{{.locale.Tr "settings.ssh_key_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,14 +40,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui small basic delete modal" id="leave-organization">
|
<div class="ui gitea-confirm-modal delete modal" id="leave-organization">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
{{$.locale.Tr "org.members.leave"}}
|
{{$.locale.Tr "org.members.leave"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{$.locale.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p>
|
<p>{{$.locale.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -38,8 +38,7 @@
|
||||||
<div class="right floated content">
|
<div class="right floated content">
|
||||||
{{if $.allowAdopt}}
|
{{if $.allowAdopt}}
|
||||||
<button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button>
|
<button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button>
|
||||||
<div class="ui basic modal" id="adopt-unadopted-modal-{{$dirI}}">
|
<div class="ui gitea-confirm-modal modal" id="adopt-unadopted-modal-{{$dirI}}">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
|
<span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,7 +49,7 @@
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="id" value="{{$dir}}">
|
<input type="hidden" name="id" value="{{$dir}}">
|
||||||
<input type="hidden" name="action" value="adopt">
|
<input type="hidden" name="action" value="adopt">
|
||||||
<div class="actions">
|
<div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}}
|
||||||
<button class="ui red basic inverted cancel button">
|
<button class="ui red basic inverted cancel button">
|
||||||
{{svg "octicon-x"}}
|
{{svg "octicon-x"}}
|
||||||
{{$.locale.Tr "modal.no"}}
|
{{$.locale.Tr "modal.no"}}
|
||||||
|
@ -65,8 +64,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if $.allowDelete}}
|
{{if $.allowDelete}}
|
||||||
<button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
<button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
||||||
<div class="ui basic modal" id="delete-unadopted-modal-{{$dirI}}">
|
<div class="ui gitea-confirm-modal modal" id="delete-unadopted-modal-{{$dirI}}">
|
||||||
{{svg "octicon-x" 16 "close inside"}}
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>
|
<span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,7 +75,7 @@
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="id" value="{{$dir}}">
|
<input type="hidden" name="id" value="{{$dir}}">
|
||||||
<input type="hidden" name="action" value="delete">
|
<input type="hidden" name="action" value="delete">
|
||||||
{{template "base/delete_modal_actions" $}}
|
{{template "base/modal_actions_confirm" $}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -131,14 +129,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal">
|
<div class="ui gitea-confirm-modal delete modal">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.remove_account_link"}}
|
{{.locale.Tr "settings.remove_account_link"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.remove_account_link_desc"}}</p>
|
<p>{{.locale.Tr "settings.remove_account_link_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
|
@ -41,13 +41,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-account-link">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-account-link">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.remove_account_link"}}
|
{{.locale.Tr "settings.remove_account_link"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.remove_account_link_desc"}}</p>
|
<p>{{.locale.Tr "settings.remove_account_link_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -51,13 +51,13 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-openid">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-openid">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.openid_deletion"}}
|
{{.locale.Tr "settings.openid_deletion"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.openid_deletion_desc"}}</p>
|
<p>{{.locale.Tr "settings.openid_deletion_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -23,13 +23,13 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="disable-twofa">
|
<div class="ui gitea-confirm-modal delete modal" id="disable-twofa">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.twofa_disable"}}
|
{{.locale.Tr "settings.twofa_disable"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.twofa_disable_desc"}}</p>
|
<p>{{.locale.Tr "settings.twofa_disable_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -30,13 +30,13 @@
|
||||||
|
|
||||||
{{template "user/auth/webauthn_error" .}}
|
{{template "user/auth/webauthn_error" .}}
|
||||||
|
|
||||||
<div class="ui small basic delete modal" id="delete-registration">
|
<div class="ui gitea-confirm-modal delete modal" id="delete-registration">
|
||||||
<div class="ui icon header">
|
<div class="header">
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.webauthn_delete_key"}}
|
{{.locale.Tr "settings.webauthn_delete_key"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.webauthn_delete_key_desc"}}</p>
|
<p>{{.locale.Tr "settings.webauthn_delete_key_desc"}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/modal_actions_confirm" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1140,32 +1140,6 @@ a.ui.card:hover {
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.modal {
|
|
||||||
background: var(--color-body);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.modal > .header {
|
|
||||||
color: var(--color-text-dark);
|
|
||||||
background: var(--color-secondary-bg);
|
|
||||||
border-color: var(--color-secondary);
|
|
||||||
border-top-left-radius: var(--border-radius);
|
|
||||||
border-top-right-radius: var(--border-radius);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.modal > .content {
|
|
||||||
background: var(--color-body);
|
|
||||||
text-align: left !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.modal > .actions {
|
|
||||||
background: var(--color-secondary-bg);
|
|
||||||
border-color: var(--color-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.modal > .close.inside {
|
|
||||||
color: var(--color-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.basic.table > tbody > tr {
|
.ui.basic.table > tbody > tr {
|
||||||
border-color: var(--color-secondary);
|
border-color: var(--color-secondary);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
@import "./features/codeeditor.css";
|
@import "./features/codeeditor.css";
|
||||||
@import "./features/projects.css";
|
@import "./features/projects.css";
|
||||||
@import "./modules/tippy.css";
|
@import "./modules/tippy.css";
|
||||||
|
@import "./modules/modal.css";
|
||||||
@import "./code/linebutton.css";
|
@import "./code/linebutton.css";
|
||||||
@import "./markup/content.css";
|
@import "./markup/content.css";
|
||||||
@import "./markup/codecopy.css";
|
@import "./markup/codecopy.css";
|
||||||
|
|
47
web_src/css/modules/modal.css
Normal file
47
web_src/css/modules/modal.css
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
.ui.modal.gitea-confirm-modal {
|
||||||
|
max-width: min(800px, 90vw);
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.modal > .header {
|
||||||
|
/* can't use display:flex, because some headers have space-separated elements, eg: delete branch modal */
|
||||||
|
color: var(--color-text-dark);
|
||||||
|
background: var(--color-body);
|
||||||
|
border-color: var(--color-secondary);
|
||||||
|
border-top-left-radius: var(--border-radius);
|
||||||
|
border-top-right-radius: var(--border-radius);
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.modal > .header .svg {
|
||||||
|
vertical-align: middle;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gitea sometimes use a form in a modal dialog, then the "positive" button could submit the form directly */
|
||||||
|
|
||||||
|
.ui.modal > .content,
|
||||||
|
.ui.modal > form > .content {
|
||||||
|
background: var(--color-body);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.modal > .actions,
|
||||||
|
.ui.modal > form > .actions {
|
||||||
|
background: var(--color-secondary-bg);
|
||||||
|
border-color: var(--color-secondary);
|
||||||
|
|
||||||
|
/* these styles are from Fomantic UI */
|
||||||
|
padding: 1rem;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* positive/negative action buttons */
|
||||||
|
.ui.modal .actions > .ui.button {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px 12px 10px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.modal .actions > .ui.button .svg {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
|
@ -129,12 +129,7 @@ export function initRepoProject() {
|
||||||
$('.default-project-board-modal').each(function () {
|
$('.default-project-board-modal').each(function () {
|
||||||
const boardColumn = $(this).closest('.board-column');
|
const boardColumn = $(this).closest('.board-column');
|
||||||
const showButton = $(boardColumn).find('.default-project-board-show');
|
const showButton = $(boardColumn).find('.default-project-board-show');
|
||||||
const commitButton = $(this).find('.default-project-board-button');
|
const commitButton = $(this).find('.actions > .ok.button');
|
||||||
|
|
||||||
if ($(showButton).data('type') === 'unset_default') {
|
|
||||||
$(commitButton).removeClass('primary');
|
|
||||||
$(commitButton).addClass('red');
|
|
||||||
}
|
|
||||||
|
|
||||||
$(commitButton).on('click', (e) => {
|
$(commitButton).on('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -152,12 +147,16 @@ export function initRepoProject() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.delete-project-board').each(function () {
|
$('.show-delete-column-modal').each(function () {
|
||||||
$(this).on('click', function (e) {
|
const deleteColumnModal = $(`${$(this).attr('data-modal')}`);
|
||||||
|
const deleteColumnButton = deleteColumnModal.find('.actions > .ok.button');
|
||||||
|
const deleteUrl = $(this).attr('data-url');
|
||||||
|
|
||||||
|
deleteColumnButton.on('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $(this).data('url'),
|
url: deleteUrl,
|
||||||
headers: {
|
headers: {
|
||||||
'X-Csrf-Token': csrfToken,
|
'X-Csrf-Token': csrfToken,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue