diff rhodecode/templates/summary/summary.html @ 1959:7a7ffe24b82c beta

optimized speed for browsing git changesets
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 28 Jan 2012 00:00:51 +0200
parents ef23fa832ab2
children 518f87919375
line wrap: on
line diff
--- a/rhodecode/templates/summary/summary.html	Fri Jan 27 05:33:06 2012 +0200
+++ b/rhodecode/templates/summary/summary.html	Sat Jan 28 00:00:51 2012 +0200
@@ -59,10 +59,10 @@
                       %endif
                   %endif:
                  ##REPO TYPE
-		         %if c.dbrepo.repo_type =='hg':
+		         %if h.is_hg(c.dbrepo):
 		           <img style="margin-bottom:2px" class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
 		         %endif
-		         %if c.dbrepo.repo_type =='git':
+		         %if h.is_git(c.dbrepo):
 		           <img style="margin-bottom:2px" class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
 		         %endif