From 7cc3ff0110c2938ad45ea49782dfe7d9c100e99b Mon Sep 17 00:00:00 2001 From: Konrad Langenberg Date: Sun, 27 Aug 2017 20:45:08 +0200 Subject: [PATCH] UI improvements Signed-off-by: Konrad --- public/js/index.js | 2 +- templates/repo/issue/view_content/sidebar.tmpl | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index c808a13de..d63f052a5 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1824,7 +1824,7 @@ function cancelStopwatch() { } function showAddDependencyModal() { - $('.tiny.modal') + $('.mini.modal') .modal({ duration: 200, onApprove: function() { diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 90b149ced..f418cf487 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -196,6 +196,7 @@
{{.i18n.Tr "repo.issues.dependency.title"}}
+ {{if .BlockedByDependencies}} This issue is blocked by:
{{range .BlockedByDependencies}} @@ -216,7 +217,9 @@
{{end}}
+ {{end}} + {{if .BlockingDependencies}}
This issue blocks the following issues: {{range .BlockingDependencies}} @@ -236,8 +239,12 @@ {{.Title}}
{{end}} -

{{.i18n.Tr "repo.issues.dependency.no_dependencies"}}

+ {{end}} + + {{if (and (not .BlockedByDependencies) (not .BlockingDependencies))}} +

{{.i18n.Tr "repo.issues.dependency.no_dependencies"}}

+ {{end}}
-