mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-29 17:29:11 +01:00
* InfoLog: icons to visualise entry has a parent or subs, using these icons (arrow left or up) in context-menu too
This commit is contained in:
parent
c593286260
commit
cd2cc35b73
@ -918,14 +918,14 @@ class infolog_ui
|
||||
),
|
||||
'view' => array(
|
||||
'caption' => 'View subs',
|
||||
'icon' => 'view',
|
||||
'icon' => 'egw_action/arrow_left',
|
||||
'group' => $group,
|
||||
'hint' => 'View all subs of this entry',
|
||||
'enableClass' => 'rowHasSubs',
|
||||
),
|
||||
'parent' => array(
|
||||
'caption' => 'View parent',
|
||||
'icon' => 'parent',
|
||||
'icon' => 'egw_action/arrow_up',
|
||||
'group' => $group,
|
||||
'hideOnDisabled' => true,
|
||||
'hint' => 'View the parent of this entry and all his subs',
|
||||
|
@ -18,4 +18,14 @@ table.fullWidth { width: 100%; }
|
||||
.noWrap { white-space: nowrap; }
|
||||
.user_filter select { width: 100px; }
|
||||
.inputFullWidth input { width: 100%; }
|
||||
.image16 img { height: 16px; }
|
||||
.image16 img { height: 16px; }
|
||||
tr.rowHasSubs > td:first-child {
|
||||
background-image: url(../../../phpgwapi/templates/default/images/egw_action/arrow_left.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0px 11px;
|
||||
}
|
||||
tr.rowHasParent > td:first-child {
|
||||
background-image: url(../../../phpgwapi/templates/default/images/egw_action/arrow_up.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0px 11px;
|
||||
}
|
||||
|
@ -871,11 +871,19 @@ class common
|
||||
|
||||
foreach(scandir($dir) as $img)
|
||||
{
|
||||
if ($img[0] == '.' || !in_array($ext = self::get_extension($img, $name), $img_types) || empty($name)) continue;
|
||||
if ($img[0] == '.') continue;
|
||||
|
||||
if (!isset($app_map[$name]) || array_search($ext, $img_types) < array_search(self::get_extension($app_map[$name]), $img_types))
|
||||
unset($subdir);
|
||||
foreach(is_dir($dir.'/'.$img) ? scandir($dir.'/'.($subdir=$img)) : (array) $img as $img)
|
||||
{
|
||||
$app_map[$name] = $imagedir.'/'.$img;
|
||||
if (!in_array($ext = self::get_extension($img, $name), $img_types) || empty($name)) continue;
|
||||
|
||||
if (isset($subdir)) $name = $subdir.'/'.$name;
|
||||
|
||||
if (!isset($app_map[$name]) || array_search($ext, $img_types) < array_search(self::get_extension($app_map[$name]), $img_types))
|
||||
{
|
||||
$app_map[$name] = $imagedir.'/'.$name.'.'.$ext;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
phpgwapi/templates/default/images/egw_action/arrow_left.png
Normal file
BIN
phpgwapi/templates/default/images/egw_action/arrow_left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
phpgwapi/templates/default/images/egw_action/arrow_up.png
Normal file
BIN
phpgwapi/templates/default/images/egw_action/arrow_up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue
Block a user