[Bps-public-commit] rtx-calendar branch make-queue-name-optional created. 1.09-1-g5f7aeae

BPS Git Server git at git.bestpractical.com
Tue Jan 2 20:33:02 UTC 2024


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, make-queue-name-optional has been created
        at  5f7aeae4dee70ddbd1a2737980096222bf7ada8a (commit)

- Log -----------------------------------------------------------------
commit 5f7aeae4dee70ddbd1a2737980096222bf7ada8a
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Tue Jan 2 17:30:51 2024 -0300

    Make Queue Name in Event Title optional
    
    The event box title does not break lines in the new calendar version.
    This can be a problem when the queue name is long.  This patch makes the
    queue name optional in the event title.

diff --git a/html/Elements/CalendarEvent b/html/Elements/CalendarEvent
index 15c1281..109b33f 100644
--- a/html/Elements/CalendarEvent
+++ b/html/Elements/CalendarEvent
@@ -65,7 +65,7 @@ if ( ( !grep { $_ eq $TicketId } @$spanning_tickets_for_tomorrow ) ) {
         <div class="event-info">
 % if ( $first_day_of_the_event || $DayOfWeek eq 1 ) {
         <a class="event-title" href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$TicketId%>">
-           <% $Object->QueueObj->Name %> #<% $TicketId %>
+            <% RT->Config->Get('CalendarDisplayQueue') ? $Object->QueueObj->Name : '' %> #<% $TicketId %>
            <% $display_owner ? 'by ' . $Object->OwnerObj->Name : '' %>
            <% length($Object->Subject) > 80 ? substr($Object->Subject, 0, 77) . "..." : $Object->Subject %>
         </a>
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index 13b014b..5d54d9b 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -458,6 +458,13 @@ to your F<etc/RT_SiteConfig.pm>:
 
     Set($CalendarDisplayOwner, 1);
 
+=head3 Display Queue
+
+You can show the queue of the ticket in each event box title by adding this
+line to your F<etc/RT_SiteConfig.pm>:
+
+    Set($CalendarDisplayQueue, 1);
+
 =head3 Choosing the fields to be displayed in the popup
 
 When you mouse over events on the calendar, a popup window shows additional

-----------------------------------------------------------------------


hooks/post-receive
-- 
rtx-calendar


More information about the Bps-public-commit mailing list