[components] Use correct CSS class on toggle button (related to #4881614)

authorRémi Cardona <remi.cardona@logilab.fr>
changeset470fc02694ce
branchdefault
phasepublic
hiddenno
parent revision#5a328cceb4f2 Added tag cubicweb-squareui-version-0.3.8, cubicweb-squareui-debian-version-0.3.8-1, cubicweb-squareui-centos-version-0.3.8-1 for changeset cae67c4b203a
child revision#06ac04d37039 [basetemplates] Use container-fluid instead of container (related to #4538123)
files modified by this revision
views/component.py
# HG changeset patch
# User Rémi Cardona <remi.cardona@logilab.fr>
# Date 1422003714 -3600
# Fri Jan 23 10:01:54 2015 +0100
# Node ID 470fc02694ce46bcddde9f6546b02defb3285463
# Parent 5a328cceb4f24a2d8d1c93af3a4fa33f1bdc4759
[components] Use correct CSS class on toggle button (related to #4881614)

diff --git a/views/component.py b/views/component.py
@@ -28,11 +28,11 @@
1      order = 3
2      visible = False
3      icon_css_cls = 'glyphicon glyphicon-align-justify'
4 
5      def render(self, w):
6 -        w(u'''<button class="btn btn-default navbar-toggle" id="cw-aside-toggle"
7 +        w(u'''<button class="btn btn-default navbar-btn" id="cw-aside-toggle"
8                onclick="cw.cubes.squareui.toggleLeftColumn()" title="%(label)s">
9                <span class="%(icon_class)s"></span>
10                </button>''' % {
11                  'icon_class': self.icon_css_cls,
12                  'label': self._cw._('collapse boxes')