From f531aaf011a2885566f596cf9fc109d891600a69 Mon Sep 17 00:00:00 2001 From: May Date: Sun, 27 Oct 2019 11:16:32 +0100 Subject: [PATCH 1/3] add marking to title_wip_desc Signed-off-by: May --- public/css/index.css | 1 + public/less/_repository.less | 4 ++++ templates/repo/issue/new_form.tmpl | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/css/index.css b/public/css/index.css index 2815accab9d41..f0a5521acc165 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -896,6 +896,7 @@ tbody.commit-list{vertical-align:baseline} .file-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px!important} .file-info{display:flex;align-items:center} .file-info-entry+.file-info-entry{border-left:1px solid currentColor;margin-left:8px;padding-left:8px} +.title_wip_desc{margin-top:1em} .CodeMirror{font:14px 'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace} .CodeMirror.cm-s-default{border-radius:3px;padding:0!important} .CodeMirror .cm-comment{background:inherit!important} diff --git a/public/less/_repository.less b/public/less/_repository.less index d6bc84ee56ae8..d62ec8f25052d 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -2450,3 +2450,7 @@ tbody.commit-list { margin-left: 8px; padding-left: 8px; } + +.title_wip_desc { + margin-top: 1em; +} diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 99a68bc76eaa9..d0e124a178323 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -15,7 +15,7 @@
{{if .PageIsComparePull}} - {{.i18n.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0| Escape) | Safe}} +
{{.i18n.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0| Escape) | Safe}}
{{end}}
{{template "repo/issue/comment_tab" .}} From e7e26571c43f76376f203f79fbc6a702a85bac52 Mon Sep 17 00:00:00 2001 From: May Date: Tue, 29 Oct 2019 23:49:35 +0100 Subject: [PATCH 2/3] update table styling Signed-off-by: May --- templates/repo/view_list.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 4c96109e8bf90..62cd7a8f4fce8 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -1,4 +1,4 @@ - +
- + {{end}} From 7d0d775edc031b07c2af6ce2ded032c8534cfa6e Mon Sep 17 00:00:00 2001 From: May Date: Wed, 30 Oct 2019 18:48:48 +0100 Subject: [PATCH 3/3] Update file table column width to 4:9:3 Signed-off-by: May --- templates/repo/view_list.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 62cd7a8f4fce8..87f613f739f9a 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -62,7 +62,7 @@ {{else}} - {{end}} - - + {{end}}
@@ -62,7 +62,7 @@ {{else}} - + {{if $entry.IsDir}} {{$subJumpablePathName := $entry.GetSubJumpablePathName}} @@ -87,7 +87,7 @@ {{$commit.Summary}} {{TimeSince $commit.Committer.When $.Lang}}{{TimeSince $commit.Committer.When $.Lang}}
+ {{if $entry.IsDir}} {{$subJumpablePathName := $entry.GetSubJumpablePathName}} @@ -82,12 +82,12 @@ + {{$commit.Summary}} {{TimeSince $commit.Committer.When $.Lang}}{{TimeSince $commit.Committer.When $.Lang}}