Get help from other users here.
Moderators: Developer , Contributor
amphetamine
Posts: 113 Joined: 05 Jun 2019, 00:17
Post
by amphetamine » 20 Mar 2020, 14:04
* - Array keys 1 and 2 offer two levels of "Due soon": orange and green.
* By default, only the first one is set, to 7 days.
∨ no problem with that
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
);
how to add array key 2 to show the green light?
∨ not working
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
14,
);
atrol
Site Admin
Posts: 8374 Joined: 26 Mar 2008, 21:37
Location: Germany
Post
by atrol » 20 Mar 2020, 14:42
amphetamine wrote: ↑ 20 Mar 2020, 14:04
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
14,
);
Didn't try, but this should work
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
14 * SECONDS_PER_DAY,
);
atrol
Site Admin
Posts: 8374 Joined: 26 Mar 2008, 21:37
Location: Germany
Post
by atrol » 24 Mar 2020, 18:01
The color is defined in css/default.css
Code: Select all
td.due-2 { background-color: green; color: #ffffff; font-weight: bold; }
You can change it at this place (don't forget to change it agian after upgrades), or use option $g_css_include_file to create your own css file, or write a plugin that changes the style via JavaScript.
After changing the css-file you might have to clear your browser cache to see the change.