From e8cc3ace73fc0b466388ab65ebcd24d672ce93b6 Mon Sep 17 00:00:00 2001 From: colorfulberry Date: Tue, 19 May 2020 11:00:30 +0800 Subject: [PATCH] feat: add dataset pages for create --- .bra.toml | 4 ++-- main.go | 3 ++- templates/datasets/create.tmpl | 12 +++++++----- web_src/less/_dataset.less | 3 +++ web_src/less/_form.less | 2 ++ web_src/less/index.less | 1 + 6 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 web_src/less/_dataset.less diff --git a/.bra.toml b/.bra.toml index 22811f925..bd324f035 100755 --- a/.bra.toml +++ b/.bra.toml @@ -12,12 +12,12 @@ watch_dirs = [ "$WORKDIR/cmd", "$WORKDIR/options", ] # Directories to watch -watch_exts = [".go", ".ini"] # Extensions to watch +watch_exts = [".go", ".ini", ".less"] # Extensions to watch env_files = [] # Load env vars from files ignore = [".git", "node_modules"] # Directories to exclude from watching ignore_files = [] # Regexps for ignoring specific notifies follow_symlinks = false # Enable/disable following symbolic links of sub directories -build_delay = 1500 # Minimal interval to Trigger build event +build_delay = 3000 # Minimal interval to Trigger build event interrupt_timout = 15 # Time to wait until force kill graceful_kill = false # Wait for exit and before directly kill cmds = [ # Commands to run diff --git a/main.go b/main.go index 90feaa9bb..34387c433 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( "os" "runtime" "strings" + "time" "code.gitea.io/gitea/cmd" "code.gitea.io/gitea/modules/log" @@ -38,7 +39,7 @@ var ( ) func init() { - setting.AppVer = Version + setting.AppVer = time.Now().String() setting.AppBuiltWith = formatBuiltWith() // Grab the original help templates diff --git a/templates/datasets/create.tmpl b/templates/datasets/create.tmpl index 0fecd5f1b..9a18e4a0d 100644 --- a/templates/datasets/create.tmpl +++ b/templates/datasets/create.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -
+
@@ -9,22 +9,24 @@
{{template "base/alert" .}} -
+
-
+
-
+
-
+
+ +
diff --git a/web_src/less/_dataset.less b/web_src/less/_dataset.less new file mode 100644 index 000000000..90bf6a2dc --- /dev/null +++ b/web_src/less/_dataset.less @@ -0,0 +1,3 @@ +.dataset { + padding-top: 15px; +} \ No newline at end of file diff --git a/web_src/less/_form.less b/web_src/less/_form.less index de48f0ba5..52dd70568 100644 --- a/web_src/less/_form.less +++ b/web_src/less/_form.less @@ -153,7 +153,9 @@ } } +.dataset, .repository { + &.new, &.new.repo, &.new.migrate, &.new.fork { diff --git a/web_src/less/index.less b/web_src/less/index.less index 968ef8dbf..7ff44d090 100644 --- a/web_src/less/index.less +++ b/web_src/less/index.less @@ -9,6 +9,7 @@ @import "_install"; @import "_form"; @import "_repository"; +@import "_dataset"; @import "_editor"; @import "_organization"; @import "_user";