equal
deleted
inserted
replaced
417 title = _('Powered by CubicWeb') |
417 title = _('Powered by CubicWeb') |
418 |
418 |
419 def url(self): |
419 def url(self): |
420 return 'http://www.cubicweb.org' |
420 return 'http://www.cubicweb.org' |
421 |
421 |
422 class GotRhythmAction(action.Action): |
|
423 __regid__ = 'rhythm' |
|
424 __select__ = debug_mode() |
|
425 |
|
426 category = 'footer' |
|
427 order = 3 |
|
428 title = _('Got rhythm?') |
|
429 |
|
430 def url(self): |
|
431 return xml_escape(self._cw.url()+'#') |
|
432 |
|
433 def html_class(self): |
|
434 self._cw.add_js('cubicweb.rhythm.js') |
|
435 return 'rhythm' |
|
436 |
|
437 |
|
438 ## default actions ui configuration ########################################### |
422 ## default actions ui configuration ########################################### |
439 |
423 |
440 addmenu = uicfg.actionbox_appearsin_addmenu |
424 addmenu = uicfg.actionbox_appearsin_addmenu |
441 addmenu.tag_object_of(('*', 'relation_type', 'CWRType'), True) |
425 addmenu.tag_object_of(('*', 'relation_type', 'CWRType'), True) |
442 addmenu.tag_object_of(('*', 'from_entity', 'CWEType'), False) |
426 addmenu.tag_object_of(('*', 'from_entity', 'CWEType'), False) |