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
*
* @param Tabs $tabs The tabs object to extend with
*
* @see \Icinga\Web\Widget\Tabextension::apply()
*/
public function apply(Tabs $tabs)
{

View File

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

View File

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