From 9bec4e7d0985c71c8606fb60ed3f832c0443c03a Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Thu, 7 Dec 2017 14:32:36 +0100 Subject: [PATCH] ui: hide empty no repos or no repo groups display. It often happens that starting page is just a list of groups. Showing always no repos doesn't look good. - also show empty panel for a case when both are empty --- rhodecode/public/css/main.less | 7 +++ rhodecode/templates/index_base.mako | 92 +++++++++++++++++++---------- 2 files changed, 67 insertions(+), 32 deletions(-) diff --git a/rhodecode/public/css/main.less b/rhodecode/public/css/main.less index 7eb70462..4e5f1a11 100644 --- a/rhodecode/public/css/main.less +++ b/rhodecode/public/css/main.less @@ -1849,6 +1849,13 @@ BIN_FILENODE = 7 } } +.no-object-border { + text-align: center; + padding: 20px; + border-radius: @border-radius-base; + border: 1px solid @grey4; + color: @grey4; +} .creation_in_progress { color: @grey4 diff --git a/rhodecode/templates/index_base.mako b/rhodecode/templates/index_base.mako index 8a2af40c..f35f6b2f 100644 --- a/rhodecode/templates/index_base.mako +++ b/rhodecode/templates/index_base.mako @@ -60,34 +60,23 @@
+ + ## no repository groups and repos present, show something to the users + % if c.repo_groups_data == '[]' and c.repos_data == '[]': +
+

+ ${_('No repositories or repositories groups exists here.')} +

+
+ % endif +