[views] Don't add 'New XXX' title on link to create new sub-objects
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Mar 2017 12:15:14 +0100
changeset 2501 1f8ac02bbb50
parent 2500 3abbf92c7264
child 2502 fb14664bb28e
[views] Don't add 'New XXX' title on link to create new sub-objects It doesn't add any value other the link's title, while it's costly to maintain translation (and a lot of them are missing).
cubicweb_seda/views/__init__.py
--- a/cubicweb_seda/views/__init__.py	Thu Mar 16 11:30:18 2017 +0100
+++ b/cubicweb_seda/views/__init__.py	Thu Mar 16 12:15:14 2017 +0100
@@ -146,8 +146,7 @@
         if klass is None:
             klass = 'icon-plus-circled pull-right'
         url = vreg['etypes'].etype_class(etype).cw_create_url(req, **urlparams)
-        return tags.a(msg, href=url, klass=klass,
-                      title=req.__('New %s' % etype))
+        return tags.a(msg, href=url, klass=klass)
     return u''