* 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:
Ralf Becker 2012-03-20 11:18:33 +00:00
parent c593286260
commit cd2cc35b73
5 changed files with 24 additions and 6 deletions

View File

@ -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',

View File

@ -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;
}

View File

@ -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;
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB