Give deleted resources a deleted icon instead of thumbnail

This commit is contained in:
Nathan Gray 2012-12-19 18:12:42 +00:00
parent 4fce430ef9
commit f25232ad32
3 changed files with 10 additions and 1 deletions

View File

@ -235,7 +235,14 @@ class resources_bo
$resource['accessory_of_label'] = $this->link_title($resource['accessory_of']);
}
$rows[$num]['picture_thumb'] = $this->get_picture($resource);
if($resource['deleted'])
{
$rows[$num]['picture_thumb'] = 'deleted';
}
else
{
$rows[$num]['picture_thumb'] = $this->get_picture($resource);
}
$rows[$num]['admin'] = $this->acl->get_cat_admin($resource['cat_id']);
}
return $nr;

View File

@ -276,6 +276,7 @@ class resources_ui
),
'restore' => array(
'caption' => 'Un-delete',
'icon' => 'revert',
'enableClass' => 'deleted',
'hideOnDisabled' => true,
'group' => $group,
@ -356,6 +357,7 @@ class resources_ui
$resource = $this->bo->read($id);
$resource['deleted'] = null;
$this->bo->save($resource);
$success++;
}
break;
case 'delete':

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B