minor fixes in style view tasklist

This commit is contained in:
fbsanchez 2019-05-28 10:57:36 +02:00
parent 2cd19aa0cb
commit 92ca217800
2 changed files with 42 additions and 39 deletions

View File

@ -376,6 +376,15 @@ class DiscoveryTaskList extends Wizard
$table->headstyle[$i] = 'text-align: left;';
}
// Status.
$table->headstyle[5] .= 'width: 100px';
// Progress.
$table->headstyle[7] .= 'width: 150px';
// Updated at.
$table->headstyle[8] .= 'width: 150px';
// Operations.
$table->headstyle[9] .= 'width: 150px';
$table->head[0] = __('Force');
$table->align[0] = 'left';
@ -553,13 +562,7 @@ class DiscoveryTaskList extends Wizard
if ($task['status'] <= 0 || $task['status'] > 100) {
$data[7] = '-';
} else {
$data[7] = progress_bar(
$task['status'],
100,
20,
__('Progress').':'.$task['status'].'%',
1
);
$data[7] = ui_progress($task['status'], '100%', 1.5, '#333');
}
if ($task['utimestamp'] > 0) {

View File

@ -2679,9 +2679,9 @@ function ui_progress(
}
ui_require_css_file('progress');
$output .= '<div class="progress_main" style="width: '.$width.'; height: '.$height.'em;">';
$output .= '<div class="progress_main" style="width: '.$width.'; height: '.$height.'em; border: 1px solid '.$color.'">';
$output .= '<span class="progress_text" style="font-size:'.($height - 0.5).'em;">'.$progress.'%</span>';
$output .= '<div class="progress" style="width: '.$progress.'%;"></div>';
$output .= '<div class="progress" style="width: '.$progress.'%; background: '.$color.'"></div>';
$output .= '</div>';
if (!$return) {