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

Aaron Trevena ast at bestpractical.com
Wed Jul 8 08:12:30 EDT 2020


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

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

    Improvement to documentation
    
    Clearer documentation on how what the calendar displays and how to
    add the portlet.
    
    Update version number for new release

diff --git a/README b/README
index 74c1f4b..d76989f 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.
+    search 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..b26a683 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.
+search 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 b2e779a73c4a8d527dadded81707264c472497a9
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 2d831396af001532e3915be958c751e98b040f13
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