# HG changeset patch # User domruf # Date 2017-10-13 20:44:01 # Node ID f1acd7c281574b51d3d22e433a6c50bf39252197 # Parent 3c683f04f4d75e2bf023555148fa4313f8452a8f changelog: add more verbose titles to [HG] and [GIT] repotags 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(