shorten the category names, by not appending <Global [App]> anymore, instead we use a symbol (diamond) to indicate a non-user cat

This commit is contained in:
Ralf Becker 2005-11-11 23:05:35 +00:00
parent e8701c7e08
commit 090dc5c1da
2 changed files with 4 additions and 12 deletions

View File

@ -230,13 +230,9 @@
{
$s = str_repeat('&nbsp;',$cat['level']) . $GLOBALS['egw']->strip_html($cat['name']);
if ($cat['app_name'] == 'phpgw')
if ($cat['app_name'] == 'phpgw' || $cat['owner'] == '-1')
{
$s .= '&nbsp;&lt;' . lang('Global') . '&gt;';
}
elseif ($cat['owner'] == '-1')
{
$s .= '&nbsp;&lt;' . lang('Global') . '&nbsp;' . lang($cat['app_name']) . '&gt;';
$s .= ' &#9830;';
}
if (!$tmpl->xslt)
{

View File

@ -394,13 +394,9 @@
}
$s .= '>'.str_repeat('&nbsp;',$cat['level']);
$s .= $GLOBALS['egw']->strip_html($cat['name']);
if ($cat['app_name'] == 'phpgw')
if ($cat['app_name'] == 'phpgw' || $cat['owner'] == '-1')
{
$s .= '&nbsp;&lt;' . lang('Global') . '&gt;';
}
if ($cat['owner'] == '-1')
{
$s .= '&nbsp;&lt;' . lang('Global') . '&nbsp;' . lang($this->app_name) . '&gt;';
$s .= ' &#9830;';
}
$s .= '</option>' . "\n";
}