diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html
--- a/kallithea/templates/base/base.html
+++ b/kallithea/templates/base/base.html
@@ -433,10 +433,10 @@
if(obj_dict && state.type == 'repo'){
tmpl += '';
if(obj_dict['repo_type'] === 'hg'){
- tmpl += 'hg ';
+ tmpl += 'hg ';
}
else if(obj_dict['repo_type'] === 'git'){
- tmpl += 'git ';
+ tmpl += 'git ';
}
if(obj_dict['private']){
tmpl += ' ';
diff --git a/kallithea/tests/functional/test_home.py b/kallithea/tests/functional/test_home.py
--- a/kallithea/tests/functional/test_home.py
+++ b/kallithea/tests/functional/test_home.py
@@ -17,7 +17,13 @@ class TestHomeController(TestController)
# if global permission is set
response.mustcontain('Add Repository')
- response.mustcontain('git')
+ response.mustcontain(
+ """git"""
+ )
+
+ response.mustcontain(
+ """hg"""
+ )
# html in javascript variable:
response.mustcontain(r'href=\"/%s\"' % HG_REPO)
diff --git a/kallithea/tests/functional/test_summary.py b/kallithea/tests/functional/test_summary.py
--- a/kallithea/tests/functional/test_summary.py
+++ b/kallithea/tests/functional/test_summary.py
@@ -33,7 +33,7 @@ class TestSummaryController(TestControll
# repo type
response.mustcontain(
- """hg"""
+ """hg"""
)
# public/private
response.mustcontain(
@@ -59,7 +59,7 @@ class TestSummaryController(TestControll
# repo type
response.mustcontain(
- """git"""
+ """git"""
)
# public/private
response.mustcontain(
@@ -84,7 +84,7 @@ class TestSummaryController(TestControll
# repo type
response.mustcontain(
- """hg"""
+ """hg"""
)
# public/private
response.mustcontain(
@@ -113,7 +113,7 @@ class TestSummaryController(TestControll
# repo type
response.mustcontain(
- """git"""
+ """git"""
)
# public/private
response.mustcontain(