changeset 2454:3bb99e3e0e44 beta

fix issue #458 wrong count when no repos are present
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 14 Jun 2012 02:15:57 +0200
parents d2a528b60e50
children f71d40380768
files rhodecode/templates/index_base.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/index_base.html	Thu Jun 14 02:06:35 2012 +0200
+++ b/rhodecode/templates/index_base.html	Thu Jun 14 02:15:57 2012 +0200
@@ -119,7 +119,7 @@
         </div>
     </div>
     <script>
-      YUD.get('repo_count').innerHTML = ${cnt+1};
+      YUD.get('repo_count').innerHTML = ${cnt+1 if cnt else 0};
       var func = function(node){
           return node.parentNode.parentNode.parentNode.parentNode;
       }