mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Give deleted resources a deleted icon instead of thumbnail
This commit is contained in:
parent
4fce430ef9
commit
f25232ad32
@ -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;
|
||||
|
@ -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':
|
||||
|
BIN
resources/templates/default/images/deleted.png
Normal file
BIN
resources/templates/default/images/deleted.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 295 B |
Loading…
Reference in New Issue
Block a user