Skip to content

Commit ab1f94e

Browse files
committed
[Bug #151] Show activation in red when the project is active but the finish date has passed.
1 parent 9539fd6 commit ab1f94e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/viewProjectDetails.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,12 @@
118118
{
119119
if ($active == False)
120120
echo "value:'No'";
121-
else
121+
else {
122122
echo "value:'Yes'";
123+
if(time() > $project->getEnd()->getTimestamp())
124+
//project is open but finish date has passed
125+
echo ',style: {color:"red"}';
126+
}
123127
}
124128

125129
?>

0 commit comments

Comments
 (0)