diff rhodecode/templates/summary/summary.html @ 917:de8b95f461f6 beta

enabled quick link to enabling statistics in admin page, for admins
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 06 Jan 2011 00:35:43 +0100
parents b956e6f415a2
children 32318ec7bfc1
line wrap: on
line diff
--- a/rhodecode/templates/summary/summary.html	Thu Jan 06 00:29:52 2011 +0100
+++ b/rhodecode/templates/summary/summary.html	Thu Jan 06 00:35:43 2011 +0100
@@ -250,7 +250,11 @@
     <div class="table">
         
          %if c.no_data:
-           <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${c.no_data_msg}</div>
+           <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${c.no_data_msg}
+           %if h.HasPermissionAll('hg.admin')('enable stats on from summary'):
+                [${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name))}]
+           %endif
+           </div>
         %endif:  
         <div id="commit_history" style="width:460px;height:300px;float:left"></div>
         <div style="clear: both;height: 10px"></div>