[Bps-public-commit] rtx-calendar branch multiple-days-events-2 updated. 1.05-26-g3f96492
BPS Git Server
git at git.bestpractical.com
Tue Nov 21 13:52:23 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtx-calendar".
The branch, multiple-days-events-2 has been updated
via 3f96492fc9f51daa3d7ca8bfcf55dc2bda5db2db (commit)
from 19a098f711ccb891943bbe3eb7ac60926bce03bd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3f96492fc9f51daa3d7ca8bfcf55dc2bda5db2db
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date: Tue Nov 21 10:51:54 2023 -0300
Add a default color for unmapped states
Add a default background color for events with states that are
unmapped.
diff --git a/etc/RTxCalendar_Config.pm b/etc/RTxCalendar_Config.pm
index 5241e22..3fead2c 100644
--- a/etc/RTxCalendar_Config.pm
+++ b/etc/RTxCalendar_Config.pm
@@ -11,6 +11,7 @@ Set(%CalendarIcons, (
));
Set(%CalendarStatusColorMap, (
+ '_default_' => '#5555f8',
'new' => '#87873c',
'open' => '#5555f8',
'rejected' => '#FF0000',
diff --git a/html/Elements/CalendarEvent b/html/Elements/CalendarEvent
index d06e38c..15c1281 100644
--- a/html/Elements/CalendarEvent
+++ b/html/Elements/CalendarEvent
@@ -38,6 +38,8 @@ if ( ( !grep { $_ eq $TicketId } @$spanning_tickets_for_tomorrow ) ) {
" style="
% if ( $CalendarStatusColorMap{$status} ) {
background-color: <%$CalendarStatusColorMap{$status}%> !important;
+% } else {
+ background-color: <%$CalendarStatusColorMap{'_default_'}%> !important;
% }
% # We need to decrease the z-index of the spanning days of an event
% # so the event title (which is placed on the div of the first day of the
-----------------------------------------------------------------------
Summary of changes:
etc/RTxCalendar_Config.pm | 1 +
html/Elements/CalendarEvent | 2 ++
2 files changed, 3 insertions(+)
hooks/post-receive
--
rtx-calendar
More information about the Bps-public-commit
mailing list