add link to widget
This commit is contained in:
parent
eb69538d17
commit
096e50aaf6
@ -2071,18 +2071,23 @@ function getTaskProgressView($task, $label = true, $progressNumber = true, $hide
|
|||||||
else {
|
else {
|
||||||
if ($task->hasDelay()) $out .= img_warning($langs->trans("Late")).' ';
|
if ($task->hasDelay()) $out .= img_warning($langs->trans("Late")).' ';
|
||||||
|
|
||||||
$out .= !empty($diff) ? $diff.' ' : '';
|
$url = DOL_URL_ROOT.'/projet/tasks/time.php?id='.$task->id;
|
||||||
|
|
||||||
|
$out .= !empty($diff) ? $diff.' ' : '';
|
||||||
|
$out .= '<a href="'.$url.'" >';
|
||||||
$out .= '<b title="'.$langs->trans('TimeSpent').'" >';
|
$out .= '<b title="'.$langs->trans('TimeSpent').'" >';
|
||||||
if ($task->duration_effective) $out .= convertSecondToTime($task->duration_effective, $timespentoutputformat);
|
if ($task->duration_effective) $out .= convertSecondToTime($task->duration_effective, $timespentoutputformat);
|
||||||
else $out .= '--:--';
|
else $out .= '--:--';
|
||||||
$out .= '</b>';
|
$out .= '</b>';
|
||||||
|
$out .= '</a>';
|
||||||
|
|
||||||
$out .= '/';
|
$out .= '/';
|
||||||
|
|
||||||
|
$out .= '<a href="'.$url.'" >';
|
||||||
$out .= '<span title="'.$langs->trans('PlannedWorkload').'" >';
|
$out .= '<span title="'.$langs->trans('PlannedWorkload').'" >';
|
||||||
if ($task->planned_workload) $out .= convertSecondToTime($task->planned_workload, $plannedworkloadoutputformat);
|
if ($task->planned_workload) $out .= convertSecondToTime($task->planned_workload, $plannedworkloadoutputformat);
|
||||||
else $out .= '--:--';
|
else $out .= '--:--';
|
||||||
|
$out .= '</a>';
|
||||||
}
|
}
|
||||||
$out .= ' </span>';
|
$out .= ' </span>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user