Tab extensions use imgs instead of icons

This commit is contained in:
Thomas Gelf 2014-02-18 17:47:29 +00:00
parent 3faf1ec725
commit 445c981d01
3 changed files with 10 additions and 13 deletions

View File

@ -43,8 +43,6 @@ class BasketAction implements Tabextension
* Applies the dashboard actions to the provided tabset * Applies the dashboard actions to the provided tabset
* *
* @param Tabs $tabs The tabs object to extend with * @param Tabs $tabs The tabs object to extend with
*
* @see \Icinga\Web\Widget\Tabextension::apply()
*/ */
public function apply(Tabs $tabs) public function apply(Tabs $tabs)
{ {

View File

@ -45,15 +45,13 @@ class DashboardAction implements Tabextension
* Applies the dashboard actions to the provided tabset * Applies the dashboard actions to the provided tabset
* *
* @param Tabs $tabs The tabs object to extend with * @param Tabs $tabs The tabs object to extend with
*
* @see \Icinga\Web\Widget\Tabextension::apply()
*/ */
public function apply(Tabs $tabs) public function apply(Tabs $tabs)
{ {
$tabs->addAsDropdown( $tabs->addAsDropdown(
'dashboard', 'dashboard',
array( array(
'iconCls' => 'icinga-icon-dashboard', 'icon' => 'img/icons/dashboard.png',
'title' => 'Add To Dashboard', 'title' => 'Add To Dashboard',
'url' => Url::fromPath('dashboard/addurl'), 'url' => Url::fromPath('dashboard/addurl'),
'urlParams' => array( 'urlParams' => array(

View File

@ -65,21 +65,22 @@ class OutputFormat implements Tabextension
private $supportedTypes = array( private $supportedTypes = array(
self::TYPE_PDF => array( self::TYPE_PDF => array(
'name' => 'pdf', 'name' => 'pdf',
'title' => '<i class="icinga-icon-pdf"></i> PDF', 'title' => 'PDF',
'urlParams' => array('format' => 'pdf') 'icon' => 'img/icons/pdf.png',
'urlParams' => array('filetype' => 'pdf')
), ),
/*
self::TYPE_CSV => array( self::TYPE_CSV => array(
'name' => 'csv', 'name' => 'csv',
'title' => '<i class="icinga-icon-csv"></i> CSV', 'title' => 'CSV',
'urlParams' => array('format' => 'csv') 'icon' => 'img/icons/csv.png',
'urlParams' => array('filetype' => 'csv')
), ),
self::TYPE_JSON => array( self::TYPE_JSON => array(
'name' => 'json', 'name' => 'json',
'title' => '<i class="icinga-icon-json"></i> JSON', 'title' => 'JSON',
'urlParams' => array('format' => 'json') 'icon' => 'img/icons/json.png',
'urlParams' => array('filetype' => 'json')
) )
*/
); );
/** /**