Skip to content

Commit

Permalink
#58 [TimeSpent] add: favorite star after task getNomUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Nov 9, 2022
1 parent acd8490 commit 9923db5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dolisirh_function.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,11 @@ function doliSirhTaskLinesWithinRange(&$inc, $firstdaytoshow, $lastdaytoshow, $f
print '<div class="marginleftonly">';
}
print $taskstatic->getNomUrl(1, 'withproject', 'time');
if (isTaskFavorite($taskstatic->id, $fuser->id)) {
print '<span class="fas fa-star"></span>';
} else {
print '<span class="far fa-star"></span>';
}
// Label task
print '<br>';
print '<span class="opacitymedium" title="' . $taskstatic->label . '">' . dol_trunc($taskstatic->label, '64') . '</span>';
Expand Down

0 comments on commit 9923db5

Please sign in to comment.