Skip to content

Commit

Permalink
Dev: Click on plugin name to go to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Mar 22, 2018
1 parent fa99c1a commit b36caf1
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions application/views/admin/pluginmanager/index.php
Expand Up @@ -59,8 +59,7 @@
'name' => 'status',
//'rowHtmlOptionsExpression' => 'array("data-id" => $data->id)',
//'value' => function($data) { return ($data['active'] == 1 ? CHtml::image(App()->getConfig('adminimageurl') . 'active.png', gT('Active'), array('width' => 32, 'height' => 32)) : CHtml::image(App()->getConfig('adminimageurl') . 'inactive.png', gT('Inactive'), array('width' => 32, 'height' => 32))); }
'value' => function($data)
{
'value' => function ($data) {
if ($data['load_error'] == 1) {
return sprintf(
"<span data-toggle='tooltip' title='%s' class='btntooltip fa fa-times text-warning'></span>",
Expand All @@ -75,7 +74,26 @@
),
array(// display the 'name' attribute
'header' => gT('Plugin'),
'name' => 'name'
'name' => 'name',
'type' => 'html',
'value' => function ($data) {
$url = Yii::app()->getController()->createUrl(
'/admin/pluginmanager',
[
'sa' => 'configure',
'id' => $data['id']
]
);
if ($data['load_error'] == 0) {
return sprintf(
'<a href="%s">%s</a>',
$url,
$data['name']
);
} else {
return $data['name'];
}
}
),
array(// display the 'description' attribute
'header' => gT('Description'),
Expand Down

0 comments on commit b36caf1

Please sign in to comment.