[web] remove action "Got Rhythm" (closes #3093362)
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 15 Oct 2013 14:02:22 +0200
changeset 9291 4894bb92558a
parent 9290 fcce1ff81561
child 9292 4b3e657d17ab
[web] remove action "Got Rhythm" (closes #3093362)
doc/3.18.rst
doc/tools/pyjsrest.py
web/data/cubicweb.css
web/data/cubicweb.rhythm.js
web/data/rhythm15.png
web/data/rhythm18.png
web/data/rhythm20.png
web/data/rhythm22.png
web/data/rhythm24.png
web/data/rhythm26.png
web/data/uiprops.py
web/views/actions.py
--- a/doc/3.18.rst	Mon Oct 07 10:22:21 2013 +0200
+++ b/doc/3.18.rst	Tue Oct 15 14:02:22 2013 +0200
@@ -27,6 +27,10 @@
 * ``ldapuser`` have been dropped; use ``ldapfeed`` now
   (see `#2936496 <http://www.cubicweb.org/2936496>`_)
 
+* action ``GotRhythm`` was removed, make sure you do not
+  import it in your cubes (even to unregister it)
+  (see `#3093362 <http://www.cubicweb.org/3093362>`_)
+
 * all 3.8 backward compat is gone
 
 * all 3.9 backward compat (including the javascript side) is gone
--- a/doc/tools/pyjsrest.py	Mon Oct 07 10:22:21 2013 +0200
+++ b/doc/tools/pyjsrest.py	Tue Oct 15 14:02:22 2013 +0200
@@ -136,7 +136,6 @@
     'cubicweb.preferences',
     'cubicweb.edition',
     'cubicweb.reledit',
-    'cubicweb.rhythm',
     'cubicweb.timeline-ext',
 ]
 
--- a/web/data/cubicweb.css	Mon Oct 07 10:22:21 2013 +0200
+++ b/web/data/cubicweb.css	Tue Oct 15 14:02:22 2013 +0200
@@ -17,9 +17,6 @@
 }
 h1, h2, h3 { margin-top:0; margin-bottom:0; }
 
-/* got rhythm ? beat of 12*1.25 = 15 px */
-.rhythm_bg { background: url("%(baseRhythmBg)s") repeat ! important; }
-
 h1,
 .vtitle {
   font-size: %(h1FontSize)s;
@@ -297,7 +294,6 @@
 
 div#pageContent {
   clear: both;
-  /* margin-top:-1px; *//* enable when testing rhythm */
   background: %(pageContentBgColor)s;
   border: 1px solid %(pageContentBorderColor)s;
   padding: 0 %(pageContentPadding)s %(pageContentPadding)s;
--- a/web/data/cubicweb.rhythm.js	Mon Oct 07 10:22:21 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-$(document).ready(function() {
-    $('a.rhythm').click(function (event){
-        $('div#pageContent').toggleClass('rhythm_bg');
-        $('div#page').toggleClass('rhythm_bg');
-        event.preventDefault();
-    });
-});
Binary file web/data/rhythm15.png has changed
Binary file web/data/rhythm18.png has changed
Binary file web/data/rhythm20.png has changed
Binary file web/data/rhythm22.png has changed
Binary file web/data/rhythm24.png has changed
Binary file web/data/rhythm26.png has changed
--- a/web/data/uiprops.py	Mon Oct 07 10:22:21 2013 +0200
+++ b/web/data/uiprops.py	Tue Oct 15 14:02:22 2013 +0200
@@ -66,7 +66,6 @@
 defaultSize = '12px'
 defaultLineHeight = '1.5'
 defaultLineHeightEm = lazystr('%(defaultLineHeight)sem')
-baseRhythmBg = 'rhythm18.png'
 
 inputHeight = '1.3em'
 inputPadding = 'O.2em'
--- a/web/views/actions.py	Mon Oct 07 10:22:21 2013 +0200
+++ b/web/views/actions.py	Tue Oct 15 14:02:22 2013 +0200
@@ -419,22 +419,6 @@
     def url(self):
         return 'http://www.cubicweb.org'
 
-class GotRhythmAction(action.Action):
-    __regid__ = 'rhythm'
-    __select__ = debug_mode()
-
-    category = 'footer'
-    order = 3
-    title = _('Got rhythm?')
-
-    def url(self):
-        return xml_escape(self._cw.url()+'#')
-
-    def html_class(self):
-        self._cw.add_js('cubicweb.rhythm.js')
-        return 'rhythm'
-
-
 ## default actions ui configuration ###########################################
 
 addmenu = uicfg.actionbox_appearsin_addmenu