From 8a3885644f7163bc752aecf1cf4b867fc6ad6313 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 28 Dec 2020 20:46:43 +0800 Subject: [PATCH 1/5] second commit --- templates/repo/cloudbrain/index.tmpl | 372 +++++++++++++-------------- 1 file changed, 185 insertions(+), 187 deletions(-) diff --git a/templates/repo/cloudbrain/index.tmpl b/templates/repo/cloudbrain/index.tmpl index 6a4ba1f50..44fe9a0c8 100755 --- a/templates/repo/cloudbrain/index.tmpl +++ b/templates/repo/cloudbrain/index.tmpl @@ -1,215 +1,213 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
-
-
-

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

-
-
-
-
- {{if .Permission.CanWrite $.UnitTypeCloudBrain}} - {{.i18n.Tr "repo.cloudbrain.new"}} - {{end}} -
-
-
-
-
-
-
-
-
-
-
- +
+
+ {{end}} {{template "base/paginate" .}} +
+
+
+
+
{{template "base/footer" .}} + // 获取 元素,用于关闭弹窗 + var spans = document.getElementsByClassName('close'); + // 点击按钮打开弹窗 + for (i = 0; i < btns.length; i++) { + btns[i].onclick = function() { + modal.style.display = "block"; + } + } - \ No newline at end of file From f923e0a2e6ab337551d187bb5251eebf1e73a7a4 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 28 Dec 2020 20:48:38 +0800 Subject: [PATCH 2/5] update --- templates/repo/cloudbrain/index.tmpl | 165 +++++++++++++++++++++++++-- 1 file changed, 153 insertions(+), 12 deletions(-) diff --git a/templates/repo/cloudbrain/index.tmpl b/templates/repo/cloudbrain/index.tmpl index 44fe9a0c8..26827ce74 100755 --- a/templates/repo/cloudbrain/index.tmpl +++ b/templates/repo/cloudbrain/index.tmpl @@ -1,4 +1,18 @@ {{template "base/head" .}} + +
+
+
+
+
+
+
+
+
+ + +
+
{{template "repo/header" .}}
@@ -69,6 +83,9 @@
+ + + 提交镜像 @@ -76,7 +93,8 @@ @@ -112,6 +130,7 @@
{{template "base/footer" .}} +