From 8a3885644f7163bc752aecf1cf4b867fc6ad6313 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 28 Dec 2020 20:46:43 +0800 Subject: [PATCH] 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