[Bps-public-commit] rtx-calendar branch, update-for-rt5, created. 1.01-3-g2d9dba1

Aaron Trevena ast at bestpractical.com
Fri Jul 10 03:53:35 EDT 2020


The branch, update-for-rt5 has been created
        at  2d9dba1828a87156736705a47b2d6fe65b227b30 (commit)

- Log -----------------------------------------------------------------
commit f060baf968fb074c90b56b678093eb2eaaae69a6
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Wed Jul 8 13:08:35 2020 +0100

    Clarify documentation on what the calendar displays and how

diff --git a/README b/README
index 74c1f4b..76e2014 100644
--- a/README
+++ b/README
@@ -1,12 +1,20 @@
 NAME
     RTx::Calendar - Calendar for RT due dates
 
+RT VERSION
+    Works with RT 4.2, 4.4, 5.0
+
 DESCRIPTION
     This RT extension provides a calendar view for your tickets and your
     reminders so you see when is your next due ticket. You can find it in
-    the menu Search->Calendar.
+    query builder and search results sub navigation menu.
+
+    Date fields in the search results are displayed/used in the calendar,
+    for example if you have a ticket with a due date, it won't be displayed on
+    that date unless the Due field is included in the search result format.
 
-    There's a portlet to put on your home page (see Prefs/MyRT.html)
+    There's a portlet to put on your home page (see Prefs/MyRT.html), see the
+    CONFIGURATION section below for details on adding it.
 
 INSTALLATION
     perl Makefile.PL
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index 4f2c478..6735e44 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -4,7 +4,7 @@ use strict;
 use DateTime;
 use DateTime::Set;
 
-our $VERSION = "1.01";
+our $VERSION = "1.02";
 
 RT->AddStyleSheets('calendar.css');
 
@@ -111,13 +111,22 @@ __END__
 
 RTx::Calendar - Calendar for RT due dates
 
+=head1 RT VERSION
+
+Works with RT 4.2, 4.4, 5.0
+
 =head1 DESCRIPTION
 
 This RT extension provides a calendar view for your tickets and your
 reminders so you see when is your next due ticket. You can find it in
-the menu Search->Calendar.
+query builder and search results sub navigation menu.
+
+Date fields in the search results are displayed/used in the calendar,
+for example if you have a ticket with a due date, it won't be displayed on
+that date unless the Due field is included in the search result format.
 
-There's a portlet to put on your home page (see Prefs/MyRT.html)
+There's a portlet to put on your home page (see Prefs/MyRT.html), see the
+CONFIGURATION section below for details on adding it.
 
 =head1 INSTALLATION
 

commit 49e9a9831c41e895637ddcf037fd8ecfd986472c
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Wed Jul 8 13:10:07 2020 +0100

    Update CSS styling of calendar days for RT 5
    
    Bootstrap styling hides tooltip class used for days' content, this updates the
    class used for days contents to so that it's displayed correctly in RT 4.x and 5.x

diff --git a/html/Elements/CalendarEvent b/html/Elements/CalendarEvent
index 18bd306..5b8a6c5 100644
--- a/html/Elements/CalendarEvent
+++ b/html/Elements/CalendarEvent
@@ -3,7 +3,7 @@ $Date => undef
 $Object => undef
 $DateTypes => undef
 </%args>
-<div class="tooltip">
+<div class="day">
 <small>
 
 % if ($IsReminder and RTx::Calendar::LocalDate($Object->DueObj->Unix) eq $today) {
diff --git a/static/css/calendar.css b/static/css/calendar.css
index aee3989..4adfc4a 100644
--- a/static/css/calendar.css
+++ b/static/css/calendar.css
@@ -1,17 +1,20 @@
 /* Tooltips */
-table.rtxcalendar .tooltip {
+table.rtxcalendar .day {
     position: relative;
     z-index: 1;
 }
-table.rtxcalendar .tooltip:hover {
+
+
+
+table.rtxcalendar .day:hover {
     z-index: 5;
     color:#000;
 }
-table.rtxcalendar .tooltip span.tip {
+table.rtxcalendar .day span.tip {
     display: none;
     text-align: left;
 }
-table.rtxcalendar div.tooltip:hover span.tip{
+table.rtxcalendar div.day:hover span.tip{
     display: block;
     position: absolute;
     top:12px; left:24px; width:350px;

commit 2d9dba1828a87156736705a47b2d6fe65b227b30
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Wed Jul 8 13:12:14 2020 +0100

    Update change log for 1.02 release

diff --git a/CHANGES b/CHANGES
index ce83352..87a7b14 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+1.02
+ - Clearer documentation
+ - Update stylesheet to work with bootstrap in RT5
+
 1.01
  - Provide a default search format when one isn't passed
 

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


More information about the Bps-public-commit mailing list