From 6475ff50eb9736aea52e80237d839e3918175406 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 24 Dec 2020 17:23:46 +0800 Subject: [PATCH 1/5] edit loading --- templates/repo/cloudbrain/new.tmpl | 111 ++++++++++++++++++++++++++++++++++++- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index c3fa6112e..0810f2e4b 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -1,4 +1,113 @@ {{template "base/head" .}} + + + + +
+
+
+
+
+
+
+
+
+ +
{{template "repo/header" .}}
@@ -53,7 +162,7 @@ - {{.i18n.Tr "repo.cloudbrain.cancel"}} + {{.i18n.Tr "repo.cloudbrain.cancel"}}
From 4b0cc5d3cae69d5d0b7e3372f556f544a9f0b249 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 24 Dec 2020 17:31:11 +0800 Subject: [PATCH 2/5] update loading --- templates/repo/cloudbrain/new.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index 0810f2e4b..b3d02497f 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -159,10 +159,10 @@ From 66cf569d3ff6249b71d5156d9523c06c407b01c5 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 24 Dec 2020 17:48:14 +0800 Subject: [PATCH 3/5] add Loading icons when create task on cloudbrain pages --- templates/repo/cloudbrain/new.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index b3d02497f..f0eaf358d 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}} - -
@@ -105,67 +102,65 @@
- -
- {{template "repo/header" .}} -
-
- {{template "base/alert" .}} -
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "repo.cloudbrain.new"}} -

-
-
-
- - -
-
-
- - +
+
+
+ + -
-
- - {{range .attachments}} {{end}} -
-
- - -
-
- - -
-
- - -
- -
- -
+
+ + +
+
+ + +
+
+ + +
+ +
+ + - {{.i18n.Tr "repo.cloudbrain.cancel"}} -
+ {{.i18n.Tr "repo.cloudbrain.cancel"}} +
+
+
-
- -{{template "base/footer" .}} +{{template "base/footer" .}} \ No newline at end of file From cf147d7d39ba5b97f2eeeb9282940af1ac83ff57 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 28 Dec 2020 13:37:32 +0800 Subject: [PATCH 5/5] add loading --- templates/repo/cloudbrain/new.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index 2c205c167..7714bae3d 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -86,6 +86,7 @@ function showmask() { document.getElementById("mask").style.display = "block" } + // 页面加载完毕后遮罩层隐藏 document.onreadystatechange = function() { if (document.readyState === "complete") { @@ -163,4 +164,4 @@ -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}}