From 4f296f713d11eb43f7ccd3f5dea5dd9525a3ee4b Mon Sep 17 00:00:00 2001 From: Damien Coraboeuf Date: Tue, 28 Jan 2014 17:31:11 +0100 Subject: [PATCH] #297 Displaying a configuration message when no branch is configured for a dashboard --- .../main/webapp/WEB-INF/views/dashboard.html | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/ontrack-web/src/main/webapp/WEB-INF/views/dashboard.html b/ontrack-web/src/main/webapp/WEB-INF/views/dashboard.html index 02c88ade..cfd113b5 100644 --- a/ontrack-web/src/main/webapp/WEB-INF/views/dashboard.html +++ b/ontrack-web/src/main/webapp/WEB-INF/views/dashboard.html @@ -8,28 +8,32 @@ noscript=true > - <#assign width = 100 / dashboard.branches?size /> - - - - <#list dashboard.branches as branch> - - - - -
-

${branch.project.name?html}

-

${branch.name?html}

-
-
+ <#if dashboard.branches?size == 0> +
No project/branch configured.
+ <#else> + <#assign width = 100 / dashboard.branches?size /> + + + + <#list dashboard.branches as branch> + + + + +
+

${branch.project.name?html}

+

${branch.name?html}

+
+
+