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:
@ -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" .}}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user