Skip Menu |

This queue is for tickets about the RTx-Calendar CPAN distribution.

Report information
The Basics
Id: 41731
Status: resolved
Priority: 0/
Queue: RTx-Calendar

People
Owner: Nobody in particular
Requestors: rt.cpan [...] sartak.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Optionally display owner in each day box [patch]
Hi again Nicolas, Here's another patch, one that optionally displays the owner for tickets in each day box. It's default off, but you can turn it on via config. Should work under 3.6 and 3.8. I think this is the last patch for you (for now!). :) Shawn
Subject: optional-owner-display.diff
=== html/Elements/CalendarEvent ================================================================== --- html/Elements/CalendarEvent (revision 77201) +++ html/Elements/CalendarEvent (local) @@ -45,6 +45,7 @@ <a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$TicketId%>"> <% $Object->QueueObj->Name %> #<% $TicketId %> + <% $display_owner ? 'by ' . $Object->OwnerObj->Name : '' %> <% length($Object->Subject) > 80 ? substr($Object->Subject, 0, 77) . "..." : $Object->Subject %></a></small><br /> <span class="tip"> <a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$TicketId%>"> @@ -96,6 +97,10 @@ $subject = $Object->Subject; } +my $display_owner = $RT::CalendarDisplayOwner; +$display_owner ||= RT->Config->Get('CalendarDisplayOwner') + if RT->can('Config'); + # 3.6 config my @display_fields = @RT::CalendarPopupFields; === lib/RTx/Calendar.pm ================================================================== --- lib/RTx/Calendar.pm (revision 77201) +++ lib/RTx/Calendar.pm (local) @@ -159,6 +159,11 @@ To enable private searches ICal feeds, you need to give CreateSavedSearch and LoadSavedSearch rights to your users. +You can show the owner in each day box by adding this line to your +etc/RT_SiteConfig.pm : + + Set($CalendarDisplayOwner, 1); + You can change which fields show up in the popup display when you mouse over a date in etc/RT_SiteConfig.pm :
Done in 0.7