# HG changeset patch # User Sean Farley # Date 2015-02-18 00:02:34 # Node ID 1619d9ebc1b9b40379c192ddb45e5802ecfb8f2b # Parent 0cb4a35d8248c8dd94027539dbc1e463d491c403 giticon.png: use repotag class to make an icon A quick search revealed that some old css code was never used, so it was removed. diff --git a/kallithea/public/css/contextbar.css b/kallithea/public/css/contextbar.css --- a/kallithea/public/css/contextbar.css +++ b/kallithea/public/css/contextbar.css @@ -3,7 +3,6 @@ */ i.icon-ellipsis-horizontal:after { content: ' ...';} -i.icon-git { background-image: url('../images/icons/giticon.png');} i.icon-disabled { background-image: url('../images/icons/shading.png');} /* todo: use instead of minus sign */ i[class^='icon-'] { diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -501,13 +501,6 @@ div.header img { margin: 0px 2px 0px 2px; } -#header #header-inner #quick li ul li a.git, -#header #header-inner #quick li ul li a.git:hover { - background-image: url("../images/icons/giticon.png"); - padding-left: 42px; - background-position: 20px 9px; -} - .groups_breadcrumbs a { color: #fff; } diff --git a/kallithea/public/images/icons/giticon.png b/kallithea/public/images/icons/giticon.png deleted file mode 100644 index 3f909ea413d66fb362b1991c22c869b36909891c..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@hg %endif %if h.is_git(c.db_repo): - + git %endif ## public/private @@ -363,7 +363,7 @@ tmpl += 'hg '; } else if(obj_dict['repo_type'] === 'git'){ - tmpl += ' '; + tmpl += 'git '; } if(obj_dict['private']){ tmpl += ' '; diff --git a/kallithea/templates/data_table/_dt_elements.html b/kallithea/templates/data_table/_dt_elements.html --- a/kallithea/templates/data_table/_dt_elements.html +++ b/kallithea/templates/data_table/_dt_elements.html @@ -70,7 +70,7 @@ %if h.is_hg(rtype): hg %elif h.is_git(rtype): - + git %endif ##PRIVATE/PUBLIC 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 @@ -20,7 +20,7 @@ class TestHomeController(TestController) response.mustcontain('var data = {"totalRecords": %s' % len(Repository.getAll())) response.mustcontain(r'href=\"/%s\"' % HG_REPO) - response.mustcontain(r'git') response.mustcontain(r'git""" ) #public/private response.mustcontain( @@ -102,7 +102,7 @@ class TestSummaryController(TestControll #repo type response.mustcontain( - """git""" ) #public/private response.mustcontain(