[Bps-public-commit] rt-extension-quickreply branch, master, updated. 74a64bb9d811179f3971ed9d2bd6a3d33e843338

? sunnavy sunnavy at bestpractical.com
Fri Sep 27 07:57:47 EDT 2013


The branch, master has been updated
       via  74a64bb9d811179f3971ed9d2bd6a3d33e843338 (commit)
      from  7a2bc79165672c156e7e3347e3f3e68e31d67466 (commit)

Summary of changes:
 html/Callbacks/QuickReply/Ticket/Display.html/AfterShowHistory  | 4 ++++
 html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowHistory | 5 +++++
 html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowSummary | 5 +++++
 lib/RT/Extension/QuickReply.pm                                  | 9 +++++++++
 4 files changed, 23 insertions(+)
 create mode 100644 html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowHistory
 create mode 100644 html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowSummary

- Log -----------------------------------------------------------------
commit 74a64bb9d811179f3971ed9d2bd6a3d33e843338
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Sep 27 19:54:09 2013 +0800

    new QuickReplyPositionInDisplay option

diff --git a/html/Callbacks/QuickReply/Ticket/Display.html/AfterShowHistory b/html/Callbacks/QuickReply/Ticket/Display.html/AfterShowHistory
index 4f90888..5fc9fdb 100644
--- a/html/Callbacks/QuickReply/Ticket/Display.html/AfterShowHistory
+++ b/html/Callbacks/QuickReply/Ticket/Display.html/AfterShowHistory
@@ -1 +1,5 @@
 <& /Ticket/Elements/QuickReply, %ARGS &>
+
+<%INIT>
+return if RT->Config->Get('QuickReplyPositionInDisplay') && RT->Config->Get('QuickReplyPositionInDisplay') ne 'AfterShowHistory';
+</%INIT>
diff --git a/html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowHistory b/html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowHistory
new file mode 100644
index 0000000..2c0021c
--- /dev/null
+++ b/html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowHistory
@@ -0,0 +1,5 @@
+<& /Ticket/Elements/QuickReply, %ARGS &>
+
+<%INIT>
+return unless RT->Config->Get('QuickReplyPositionInDisplay') && RT->Config->Get('QuickReplyPositionInDisplay') eq 'BeforeShowHistory';
+</%INIT>
diff --git a/html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowSummary b/html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowSummary
new file mode 100644
index 0000000..a8e570d
--- /dev/null
+++ b/html/Callbacks/QuickReply/Ticket/Display.html/BeforeShowSummary
@@ -0,0 +1,5 @@
+<& /Ticket/Elements/QuickReply, %ARGS &>
+
+<%INIT>
+return unless RT->Config->Get('QuickReplyPositionInDisplay') && RT->Config->Get('QuickReplyPositionInDisplay') eq 'BeforeShowSummary';
+</%INIT>
diff --git a/lib/RT/Extension/QuickReply.pm b/lib/RT/Extension/QuickReply.pm
index c7f2681..527c1ab 100644
--- a/lib/RT/Extension/QuickReply.pm
+++ b/lib/RT/Extension/QuickReply.pm
@@ -37,6 +37,15 @@ on by:
 
     Set($QuickReplyInSearchResults, 1);
 
+By default, Quick reply shows up in Ticket Display page after History section,
+you can customize the position by:
+
+    Set($QuickReplyPositionInDisplay, 'BeforeShowHistory');
+
+or
+
+    Set($QuickReplyPositionInDisplay, 'BeforeShowSummary');
+
 =item Clear your mason cache
 
     rm -rf /opt/rt4/var/mason_data/obj

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



More information about the Bps-public-commit mailing list