diff --git a/rhodecode/templates/summary/summary.html b/rhodecode/templates/summary/summary.html
--- a/rhodecode/templates/summary/summary.html
+++ b/rhodecode/templates/summary/summary.html
@@ -59,10 +59,10 @@
%endif
%endif:
##REPO TYPE
- %if c.dbrepo.repo_type =='hg':
+ %if h.is_hg(c.dbrepo):
%endif
- %if c.dbrepo.repo_type =='git':
+ %if h.is_git(c.dbrepo):
%endif