Todo icons:

- Use defaults for missing icons
- Prevent wrapping
This commit is contained in:
Nathan Gray 2015-12-28 17:59:47 +00:00
parent 6dfef23ae3
commit bcea893927
3 changed files with 13 additions and 7 deletions

View File

@ -878,9 +878,9 @@ class calendar_uiviews extends calendar_ui
break; break;
} }
$icons = ''; $icons = '';
foreach($todo['icons'] as $name => $app) foreach($todo['icons'] as $name => $alt)
{ {
$icons .= ($icons?' ':'').$GLOBALS['egw']->html->image($app,$name,lang($name),'border="0" width="15" height="15"'); $icons .= ($icons?' ':'').$GLOBALS['egw']->html->image('infolog',$name,lang($alt),'border="0" width="15" height="15"');
} }
$todo['icons'] = $icons; $todo['icons'] = $icons;
$class = $class == 'row_on' ? 'row_off' : 'row_on'; $class = $class == 'row_on' ? 'row_off' : 'row_on';

View File

@ -599,6 +599,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
position: absolute; position: absolute;
top: 2em; top: 2em;
bottom: 8px; bottom: 8px;
width: 100%;
} }
.calendar_calDayTodos { .calendar_calDayTodos {
width: 98%; width: 98%;
@ -608,6 +609,9 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
.calendar_calDayTodosHeader { .calendar_calDayTodosHeader {
text-align: center; text-align: center;
} }
.calendar_calDayTodosTable tr td span:first-child {
white-space: nowrap;
}
/****************************************************** /******************************************************
* CSS settings for the planner views (calendar_plannerWidget) * * CSS settings for the planner views (calendar_plannerWidget) *

View File

@ -1363,12 +1363,14 @@ class infolog_bo
$edit = egw_link::edit('infolog',$info['info_id'], $size); $edit = egw_link::edit('infolog',$info['info_id'], $size);
$edit['size'] = $size; $edit['size'] = $size;
$content=array(); $content=array();
foreach ($icons = array( $status = $this->status[$info['info_type']][$info['info_status']];
$info['info_type'] => 'infolog', $icons = array();
$this->status[$info['info_type']][$info['info_status']] => 'infolog', foreach(array(
) as $name => $app) $info['info_type'] => 'navbar',
$status => 'status'
) as $icon => $default)
{ {
$content[] = html::image($app,$name,lang($name),'border="0" width="15" height="15"').' '; $icons[common::image('infolog',$icon) ? $icon : $default] = $icon;
} }
$content[] = html::a_href($title,$view); $content[] = html::a_href($title,$view);
$html = html::table(array(1 => $content)); $html = html::table(array(1 => $content));