changeset 6946:f1acd7c28157

changelog: add more verbose titles to [HG] and [GIT] repotags
author domruf <dominikruf@gmail.com>
date Fri, 13 Oct 2017 20:44:01 +0200
parents 3c683f04f4d7
children c326db109854
files kallithea/templates/base/base.html kallithea/tests/functional/test_home.py kallithea/tests/functional/test_summary.py
diffstat 3 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/base/base.html	Wed Oct 11 22:49:53 2017 +0200
+++ b/kallithea/templates/base/base.html	Fri Oct 13 20:44:01 2017 +0200
@@ -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> ';
--- a/kallithea/tests/functional/test_home.py	Wed Oct 11 22:49:53 2017 +0200
+++ b/kallithea/tests/functional/test_home.py	Fri Oct 13 20:44:01 2017 +0200
@@ -17,7 +17,13 @@
         # 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)
--- a/kallithea/tests/functional/test_summary.py	Wed Oct 11 22:49:53 2017 +0200
+++ b/kallithea/tests/functional/test_summary.py	Fri Oct 13 20:44:01 2017 +0200
@@ -33,7 +33,7 @@
 
         # repo type
         response.mustcontain(
-            """<span class="repotag">hg"""
+            """<span class="repotag" title="Mercurial repository">hg"""
         )
         # public/private
         response.mustcontain(
@@ -59,7 +59,7 @@
 
         # repo type
         response.mustcontain(
-            """<span class="repotag">git"""
+            """<span class="repotag" title="Git repository">git"""
         )
         # public/private
         response.mustcontain(
@@ -84,7 +84,7 @@
 
         # repo type
         response.mustcontain(
-            """<span class="repotag">hg"""
+            """<span class="repotag" title="Mercurial repository">hg"""
         )
         # public/private
         response.mustcontain(
@@ -113,7 +113,7 @@
 
         # repo type
         response.mustcontain(
-            """<span class="repotag">git"""
+            """<span class="repotag" title="Git repository">git"""
         )
         # public/private
         response.mustcontain(