# HG changeset patch # User Aurelien Campeas <aurelien.campeas@logilab.fr> # Date 1409308616 -7200 # Fri Aug 29 12:36:56 2014 +0200 # Node ID 56190bc5ea4811d66adb6e5070335c1ac260b34d # Parent 5866cedaebfb176cacecdb52a028afc4736ca306 [component] fix a double "class" attribute occurrence The web browsers are quite tolerant to this but not the (x)html validators. It is necessary to fix this for e.g. automatic web tests not to fail. diff --git a/views/component.py b/views/component.py --- a/views/component.py +++ b/views/component.py @@ -30,7 +30,7 @@ icon_css_cls = 'glyphicon glyphicon-align-justify' def render(self, w): - w(u'''<button class="btn btn-default" id="cw-aside-toggle" class="navbar-toggle" + w(u'''<button class="btn btn-default navbar-toggle" id="cw-aside-toggle" onclick="cw.cubes.squareui.toggleLeftColumn()" title="%(label)s"> <span class="%(icon_class)s"></span> </button>''' % {