Skip to content

Commit d4e7fe5

Browse files
committed
fix ui
1 parent cc1d793 commit d4e7fe5

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

options/locale/locale_en-US.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,18 +2840,18 @@ settings.rename_success = Organization %[1]s have been renamed to %[2]s successf
28402840
settings.rename_no_change = Organization name is no change.
28412841
settings.rename_new_org_name = New Organization Name
28422842
settings.rename_failed = Rename Organization failed because of internal error
2843-
settings.rename_notices_1 = - This operation <strong>CANNOT</strong> be undone.
2844-
settings.rename_notices_2 = - The old name will redirect until it is claimed.
2843+
settings.rename_notices_1 = This operation <strong>CANNOT</strong> be undone.
2844+
settings.rename_notices_2 = The old name will redirect until it is claimed.
28452845
28462846
settings.update_avatar_success = The organization's avatar has been updated.
28472847
settings.delete = Delete Organization
28482848
settings.delete_account = Delete This Organization
28492849
settings.delete_prompt = The organization will be permanently removed. This <strong>CANNOT</strong> be undone!
28502850
settings.name_confirm = Enter the organization name as confirmation:
2851-
settings.delete_notices_1 = - This operation <strong>CANNOT</strong> be undone.
2852-
settings.delete_notices_2 = - This operation will permanently delete all the <strong>repositories</strong> of <strong>%s</strong> including code, issues, comments, wiki data and collaborator settings.
2853-
settings.delete_notices_3 = - This operation will permanently delete all the <strong>packages</strong> of <strong>%s</strong>.
2854-
settings.delete_notices_4 = - This operation will permanently delete all the <strong>projects</strong> of <strong>%s</strong>.
2851+
settings.delete_notices_1 = This operation <strong>CANNOT</strong> be undone.
2852+
settings.delete_notices_2 = This operation will permanently delete all the <strong>repositories</strong> of <strong>%s</strong> including code, issues, comments, wiki data and collaborator settings.
2853+
settings.delete_notices_3 = This operation will permanently delete all the <strong>packages</strong> of <strong>%s</strong>.
2854+
settings.delete_notices_4 = This operation will permanently delete all the <strong>projects</strong> of <strong>%s</strong>.
28552855
settings.confirm_delete_account = Confirm Deletion
28562856
settings.delete_failed = Delete Organization failed because of internal error
28572857
settings.delete_successful = Organization <b>%s</b> has been deleted successfully.

templates/org/settings/options_dangerzone.tmpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
{{ctx.Locale.Tr "org.settings.rename"}}
3131
</div>
3232
<div class="content">
33-
<div class="ui warning message">
34-
{{ctx.Locale.Tr "org.settings.rename_notices_1"}}<br>
35-
{{ctx.Locale.Tr "org.settings.rename_notices_2"}}
36-
</div>
33+
<ul class="ui warning message">
34+
<li>{{ctx.Locale.Tr "org.settings.rename_notices_1"}}</li>
35+
<li>{{ctx.Locale.Tr "org.settings.rename_notices_2"}}</li>
36+
</ul>
3737
<form class="ui form form-fetch-action" action="{{.Link}}/rename" method="post">
3838
{{.CsrfTokenHtml}}
3939
<div class="field">
@@ -65,12 +65,12 @@
6565
{{ctx.Locale.Tr "org.settings.delete_account"}}
6666
</div>
6767
<div class="content">
68-
<div class="ui warning message">
69-
{{ctx.Locale.Tr "org.settings.delete_notices_1"}}<br/>
70-
{{ctx.Locale.Tr "org.settings.delete_notices_2" .Org.Name}}<br/>
71-
{{ctx.Locale.Tr "org.settings.delete_notices_3" .Org.Name}}<br/>
72-
{{ctx.Locale.Tr "org.settings.delete_notices_4" .Org.Name}}
73-
</div>
68+
<ul class="ui warning message">
69+
<li>{{ctx.Locale.Tr "org.settings.delete_notices_1"}}</li>
70+
<li>{{ctx.Locale.Tr "org.settings.delete_notices_2" .Org.Name}}</li>
71+
<li>{{ctx.Locale.Tr "org.settings.delete_notices_3" .Org.Name}}</li>
72+
<li>{{ctx.Locale.Tr "org.settings.delete_notices_4" .Org.Name}}</li>
73+
</ul>
7474
<form class="ui form form-fetch-action" action="{{.Link}}/delete" method="post">
7575
{{.CsrfTokenHtml}}
7676
<div class="field">

web_src/js/modules/toast.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export function showErrorToast(message: string, opts?: ToastOpts): Toast {
9797

9898
export function hideToastsFrom(parent: Element): void {
9999
const toasts = parent.querySelectorAll(':scope > .toastify');
100-
console.log(toasts);
101100
for (const toast of toasts) {
102101
const inst = (toast as ToastifyElement)._giteaToastifyInstance;
103102
inst?.hideToast();

0 commit comments

Comments
 (0)