##// END OF EJS Templates
fixed message about disabled stats, template fixes for summary page
marcink -
r820:de5d9de4 beta
parent child Browse files
Show More
@@ -4,6 +4,7 b''
4 ~~~~~~~~~~~~~~
4 ~~~~~~~~~~~~~~
5
5
6 Summary controller for Rhodecode
6 Summary controller for Rhodecode
7
7 :created_on: Apr 18, 2010
8 :created_on: Apr 18, 2010
8 :author: marcink
9 :author: marcink
9 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
@@ -114,7 +115,7 b' class SummaryController(BaseController):'
114 c.no_data_msg = _('No data loaded yet')
115 c.no_data_msg = _('No data loaded yet')
115 run_task(get_commits_stats, c.repo_info.name, ts_min_y, ts_max_y)
116 run_task(get_commits_stats, c.repo_info.name, ts_min_y, ts_max_y)
116 else:
117 else:
117 c.no_data_msg = _('Statistics are disabled for this repository')
118 c.no_data_msg = _('Statistics update are disabled for this repository')
118 c.ts_min = ts_min_m
119 c.ts_min = ts_min_m
119 c.ts_max = ts_max_y
120 c.ts_max = ts_max_y
120
121
@@ -124,7 +125,7 b' class SummaryController(BaseController):'
124
125
125
126
126 if stats and stats.languages:
127 if stats and stats.languages:
127 c.no_data = False
128 c.no_data = False is c.repo_info.dbrepo.enable_statistics
128 lang_stats = json.loads(stats.languages)
129 lang_stats = json.loads(stats.languages)
129 c.commit_data = stats.commit_activity
130 c.commit_data = stats.commit_activity
130 c.overview_data = stats.commit_activity_combined
131 c.overview_data = stats.commit_activity_combined
@@ -619,7 +619,7 b''
619 </div>
619 </div>
620 <div class="box">
620 <div class="box">
621 <div class="title">
621 <div class="title">
622 <div class="breadcrumbs">${h.link_to(_('Last ten tags'),h.url('tags_home',repo_name=c.repo_name))}</div>
622 <div class="breadcrumbs">${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</div>
623 </div>
623 </div>
624 <div class="table">
624 <div class="table">
625 <%include file='../tags/tags_data.html'/>
625 <%include file='../tags/tags_data.html'/>
@@ -630,7 +630,7 b''
630 </div>
630 </div>
631 <div class="box">
631 <div class="box">
632 <div class="title">
632 <div class="title">
633 <div class="breadcrumbs">${h.link_to(_('Last ten branches'),h.url('branches_home',repo_name=c.repo_name))}</div>
633 <div class="breadcrumbs">${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</div>
634 </div>
634 </div>
635 <div class="table">
635 <div class="table">
636 <%include file='../branches/branches_data.html'/>
636 <%include file='../branches/branches_data.html'/>
General Comments 0
You need to be logged in to leave comments. Login now