changeset 1192:01fe71db71f6 beta

added repo count to dashboard
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 01 Apr 2011 18:08:30 +0200
parents 1fb97030b9b7
children 523382549c45
files rhodecode/controllers/home.py rhodecode/templates/index.html
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/controllers/home.py	Fri Apr 01 16:35:03 2011 +0200
+++ b/rhodecode/controllers/home.py	Fri Apr 01 18:08:30 2011 +0200
@@ -64,6 +64,7 @@
             c.repos_list = sorted(c.cached_repo_list, key=itemgetter(sort_key),
                                   reverse=False)
 
+        c.repo_cnt = len(c.repos_list)
         return render('/index.html')
 
     def repo_switcher(self):
--- a/rhodecode/templates/index.html	Fri Apr 01 16:35:03 2011 +0200
+++ b/rhodecode/templates/index.html	Fri Apr 01 18:08:30 2011 +0200
@@ -27,8 +27,12 @@
     <div class="box">
 	    <!-- box / title -->
 	    <div class="title">
-	        <h5>${_('Dashboard')}
-	        <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
+	        <h5><input class="top-right-rounded-corner top-left-rounded-corner 
+	                           bottom-left-rounded-corner bottom-right-rounded-corner" 
+	                    id="q_filter" size="15" type="text" name="filter" 
+	                    value="${_('quick filter...')}"/>
+	        
+	        ${_('Dashboard  - %s repositories' % c.repo_cnt)} 
 	        </h5>
 	        %if c.rhodecode_user.username != 'default':
 		        %if h.HasPermissionAny('hg.admin','hg.create.repository')():