diff pylons_app/templates/summary/summary.html @ 509:b50e79b4257a

fixes to pidlock, to not raise unneded execptions few fixes in templating for empty repository to not show some labels, fixed tag/branch switcher
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 28 Sep 2010 19:53:52 +0000
parents d5efb83590ef
children 63212fea2471
line wrap: on
line diff
--- a/pylons_app/templates/summary/summary.html	Tue Sep 28 02:31:10 2010 +0200
+++ b/pylons_app/templates/summary/summary.html	Tue Sep 28 19:53:52 2010 +0000
@@ -136,7 +136,7 @@
 			  		if(no_data){
 			  			var tr = document.createElement('tr');
 			  			var td1 = document.createElement('td');
-			  			td1.innerHTML = "${_('No data loaded yet...')}";
+			  			td1.innerHTML = "${_('No data loaded yet')}";
 			  			tr.appendChild(td1);
 			  			tbl.appendChild(tr);
 					}
@@ -538,7 +538,9 @@
     </div>    
     <div class="table">
         <%include file='../shortlog/shortlog_data.html'/>
-        ${h.link_to(_('show more'),h.url('changelog_home',repo_name=c.repo_name))}
+        %if c.repo_changesets:
+        	${h.link_to(_('show more'),h.url('changelog_home',repo_name=c.repo_name))}
+        %endif
     </div>
 </div>
 <div class="box">    
@@ -547,7 +549,9 @@
     </div>    
     <div class="table">
         <%include file='../tags/tags_data.html'/>
-        ${h.link_to(_('show more'),h.url('tags_home',repo_name=c.repo_name))}
+        %if c.repo_changesets:
+        	${h.link_to(_('show more'),h.url('tags_home',repo_name=c.repo_name))}
+        %endif
     </div>
 </div>
 <div class="box">
@@ -556,7 +560,9 @@
     </div>    
     <div class="table">
         <%include file='../branches/branches_data.html'/>
-        ${h.link_to(_('show more'),h.url('branches_home',repo_name=c.repo_name))}
+        %if c.repo_changesets:
+        	${h.link_to(_('show more'),h.url('branches_home',repo_name=c.repo_name))}
+        %endif
     </div>      
 </div>