Changeset - f1acd7c28157
[Not reviewed]
default
0 3 0
domruf - 8 years ago 2017-10-13 20:44:01
dominikruf@gmail.com
changelog: add more verbose titles to [HG] and [GIT] repotags
3 files changed with 13 insertions and 7 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/base/base.html
Show inline comments
 
@@ -433,10 +433,10 @@
 
                if(obj_dict && state.type == 'repo'){
 
                    tmpl += '<span class="repo-icons">';
 
                    if(obj_dict['repo_type'] === 'hg'){
 
                        tmpl += '<span class="repotag">hg</span> ';
 
                        tmpl += '<span class="repotag" title="${_('Mercurial repository')}">hg</span> ';
 
                    }
 
                    else if(obj_dict['repo_type'] === 'git'){
 
                        tmpl += '<span class="repotag">git</span> ';
 
                        tmpl += '<span class="repotag" title="${_('Git repository')}">git</span> ';
 
                    }
 
                    if(obj_dict['private']){
 
                        tmpl += '<i class="icon-keyhole-circled"></i> ';
kallithea/tests/functional/test_home.py
Show inline comments
 
@@ -17,7 +17,13 @@ class TestHomeController(TestController)
 
        # if global permission is set
 
        response.mustcontain('Add Repository')
 

	
 
        response.mustcontain('<span class="repotag">git')
 
        response.mustcontain(
 
            """<span class="repotag" title="Git repository">git"""
 
        )
 

	
 
        response.mustcontain(
 
            """<span class="repotag" title="Mercurial repository">hg"""
 
        )
 

	
 
        # html in javascript variable:
 
        response.mustcontain(r'href=\"/%s\"' % HG_REPO)
kallithea/tests/functional/test_summary.py
Show inline comments
 
@@ -33,7 +33,7 @@ class TestSummaryController(TestControll
 

	
 
        # repo type
 
        response.mustcontain(
 
            """<span class="repotag">hg"""
 
            """<span class="repotag" title="Mercurial repository">hg"""
 
        )
 
        # public/private
 
        response.mustcontain(
 
@@ -59,7 +59,7 @@ class TestSummaryController(TestControll
 

	
 
        # repo type
 
        response.mustcontain(
 
            """<span class="repotag">git"""
 
            """<span class="repotag" title="Git repository">git"""
 
        )
 
        # public/private
 
        response.mustcontain(
 
@@ -84,7 +84,7 @@ class TestSummaryController(TestControll
 

	
 
        # repo type
 
        response.mustcontain(
 
            """<span class="repotag">hg"""
 
            """<span class="repotag" title="Mercurial repository">hg"""
 
        )
 
        # public/private
 
        response.mustcontain(
 
@@ -113,7 +113,7 @@ class TestSummaryController(TestControll
 

	
 
        # repo type
 
        response.mustcontain(
 
            """<span class="repotag">git"""
 
            """<span class="repotag" title="Git repository">git"""
 
        )
 
        # public/private
 
        response.mustcontain(
0 comments (0 inline, 0 general)