Changeset - 01fe71db71f6
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 15 years ago 2011-04-01 18:08:30
marcin@python-works.com
added repo count to dashboard
2 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/home.py
Show inline comments
 
@@ -64,6 +64,7 @@ class HomeController(BaseController):
 
            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):
rhodecode/templates/index.html
Show inline comments
 
@@ -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')():
0 comments (0 inline, 0 general)