Skip to content

Commit

Permalink
Merge pull request #380 from nicolas-eoxia/add_status_project
Browse files Browse the repository at this point in the history
#374 [TimeSpent] add: project status info
  • Loading branch information
nicolas-eoxia authored Jul 21, 2023
2 parents f16bde0 + 9bd77df commit e40a50d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dolisirh_timespent.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function task_lines_within_range(int &$inc, int $timestampStart, int $timestampE
}

print '<tr class="oddeven trforbreak nobold">';
print '<td colspan="' . (2 + $addColSpan + $daysInRange) . '">';
print '<td colspan="' . (2 + $addColSpan + $daysInRange) . '"' . ($project->status == $project::STATUS_CLOSED ? 'style="background-color: #CBCDCD!important;"' : '') . '>';
print $project->getNomUrl(1, '', 0, '<strong>' . $langs->transnoentitiesnoconv('YourRole') . ' : </strong> ' . $projectsRole[$lines[$i]->fk_project]);
if ($thirdparty->id > 0) {
print ' - ' . $thirdparty->getNomUrl(1);
Expand All @@ -646,6 +646,7 @@ function task_lines_within_range(int &$inc, int $timestampStart, int $timestampE
print ' - ';
print '<span class="secondary" title="' . $project->title . '">' . dol_trunc($project->title, '64') . '</span>';
}
print ' - ' . $project->getLibStatut(5);
print '</td>';
print '</tr>';
}
Expand Down

0 comments on commit e40a50d

Please sign in to comment.