[Bps-public-commit] rtx-calendar branch multiple-days-events updated. 1.05-42-gb2f1546
BPS Git Server
git at git.bestpractical.com
Thu Oct 12 20:51:36 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 has been updated
via b2f15462e63caa32a7a1599f873207f1863f9de0 (commit)
from 11c8a53bdbef7483f06e7587b1de6696464f6d22 (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 b2f15462e63caa32a7a1599f873207f1863f9de0
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date: Thu Oct 12 17:51:09 2023 -0300
Performance Tweaks for the Calendar
diff --git a/html/Elements/CalendarEvent b/html/Elements/CalendarEvent
index df500b9..515e1e0 100644
--- a/html/Elements/CalendarEvent
+++ b/html/Elements/CalendarEvent
@@ -9,9 +9,6 @@ $CurrentPostion => undef
</%args>
<%perl>
-my $icon
-= RTx::Calendar::GetEventImg( $Object, $today, $DateTypes, $IsReminder,
- $session{'CurrentUser'} );
my $spanning_tickets_for_today = $TicketsSpanningDays->{$today} || [];
my $spanning_tickets_for_tomorrow = $TicketsSpanningDays->{$tomorrow} || [];
my $first_day_of_the_event = 0;
@@ -58,7 +55,10 @@ if ( ( !grep { $_ eq $TicketId } @$spanning_tickets_for_tomorrow ) ) {
float: right;
% }
">
+% if ( $first_day_of_the_event || $last_day_of_the_event ) {
+% my $icon = RTx::Calendar::GetEventImg( $Object, $today, $DateTypes, $IsReminder, $session{'CurrentUser'} );
<% $icon|n %>
+% }
</div>
<div class="event-info">
% if ( $first_day_of_the_event || $DayOfWeek eq 1 ) {
@@ -67,14 +67,11 @@ if ( ( !grep { $_ eq $TicketId } @$spanning_tickets_for_tomorrow ) ) {
<% $display_owner ? 'by ' . $Object->OwnerObj->Name : '' %>
<% length($Object->Subject) > 80 ? substr($Object->Subject, 0, 77) . "..." : $Object->Subject %>
</a>
-% }
-
-
-<span class="tip">
- <a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$TicketId%>">
- <% $Object->QueueObj->Name %> #<% $TicketId %>
- </a>
- :</strong> <% $subject%><br />
+ <span class="tip">
+ <a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$TicketId%>">
+ <% $Object->QueueObj->Name %> #<% $TicketId %>
+ </a>
+ :</strong> <% $subject%><br />
<br />
<%perl>
@@ -110,6 +107,7 @@ if ( ( !grep { $_ eq $TicketId } @$spanning_tickets_for_tomorrow ) ) {
<br />
</span>
+% }
</div>
</small>
-----------------------------------------------------------------------
Summary of changes:
html/Elements/CalendarEvent | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
hooks/post-receive
--
rtx-calendar
More information about the Bps-public-commit
mailing list