diff --git a/library/ZendAfi/View/Helper/Admin/FrontNav.php b/library/ZendAfi/View/Helper/Admin/FrontNav.php index 23206f8a7c50762a4a1467937081bbf841a0d320..9ad46ea694f00796f132b16eaab26bff8ff5e4ad 100644 --- a/library/ZendAfi/View/Helper/Admin/FrontNav.php +++ b/library/ZendAfi/View/Helper/Admin/FrontNav.php @@ -96,7 +96,10 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper ->getIconUrl('actions', 'toggle_on')), ['class' => 'deactivate_block_sorting', - 'onclick' => 'window.deactiveOpacBlocksSorting();return true;'])]; + 'onclick' => 'window.deactiveOpacBlocksSorting();return true;']), + $this->view->tagAnchor('#', + $this->_('Editeur CSS'), + ['onclick' => 'window.smalltalk.AFICssEditor._open();return true;'])]; return $this->_tag('ul', implode($this->_lify($actions))); } diff --git a/tests/application/modules/opac/controllers/IndexControllerTest.php b/tests/application/modules/opac/controllers/IndexControllerTest.php index cfe7cefe7a375ba07a0f21ef964bf242e21909b0..19d1ca33da869589adaaa81da60388c4252f492d 100644 --- a/tests/application/modules/opac/controllers/IndexControllerTest.php +++ b/tests/application/modules/opac/controllers/IndexControllerTest.php @@ -748,4 +748,10 @@ class IndexControllerWithBibAdminLoggedTest extends AbstractControllerTestCase { public function linkToToggleWidgetMoveShouldBeInMenu() { $this->assertXPathContentContains('//body/div//ul/li/ul/li/a', 'Déplacement des boites'); } + + + /** @test */ + public function linkToOpenCSSShouldBeInMenu() { + $this->assertXPathContentContains('//body/div//ul/li/ul/li/a', 'Editeur CSS'); + } } \ No newline at end of file