diff pylons_app/templates/index.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 70c2750531d3
children 63212fea2471
line wrap: on
line diff
--- a/pylons_app/templates/index.html	Tue Sep 28 02:31:10 2010 +0200
+++ b/pylons_app/templates/index.html	Tue Sep 28 19:53:52 2010 +0000
@@ -64,10 +64,16 @@
 					                h.url('summary_home',repo_name=repo['name']))}</td>
 					            <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td>
 					            <td>${h.age(repo['last_change'])}</td>
-					            <td>${h.link_to_if(repo['rev']>=0,'r%s:%s' % (repo['rev'],repo['tip']),
+					            <td>
+					            	%if repo['rev']>=0:
+					            	${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),
 					                h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']),
 					                class_="tooltip",
-					                tooltip_title=h.tooltip(repo['last_msg']))}</td>
+					                tooltip_title=h.tooltip(repo['last_msg']))}
+					            	%else:
+					            		${_('No changesets yet')}
+					            	%endif    
+					            </td>
 					            <td title="${repo['contact']}">${h.person(repo['contact'])}</td>
 					            <td>
 					                <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon"  href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a>