[Rt-commit] rt branch, 3.8-html-templates, updated. rt-3.8.7-279-g9c346e2
Thomas Sibley
trs at bestpractical.com
Tue Nov 16 18:20:05 EST 2010
The branch, 3.8-html-templates has been updated
via 9c346e2ff6c64535a538ada04debb0ad9d286ca5 (commit)
from 3dafdf90d1a87bd14d3b109e44d89e6bd0f485c8 (commit)
Summary of changes:
etc/initialdata | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 9c346e2ff6c64535a538ada04debb0ad9d286ca5
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Nov 16 18:20:03 2010 -0500
Update the HTML template links to use RT->Config and Ticket/Display.html
diff --git a/etc/initialdata b/etc/initialdata
index c928907..fb609b3 100755
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -511,7 +511,7 @@ Content-Type: text/html
Content-Type: text/html
{ my $c = $Transaction->Content(Type => 'text/html');
- my $url = $RT::WebURL."Ticket/Display.html?id=".$Ticket->id;
+ my $url = RT->Config->Get('WebURL')."Ticket/Display.html?id=".$Ticket->id;
if (substr($c,0,500) =~ qr/\Q$url\E/) {
$OUT = $c;
} else {
@@ -535,7 +535,7 @@ EOF
RT-Attach-Message: yes
Content-Type: text/html
-<p>This is a comment about <a href="{$RT::WebURL}?q={$Ticket->id}">ticket {$Ticket->id}</a>. It is not sent to the Requestor(s):</p>
+<p>This is a comment about <a href="{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}">ticket {$Ticket->id}</a>. It is not sent to the Requestor(s):</p>
<br/>
{$Transaction->Content(Type => 'text/html')}
],
@@ -547,7 +547,7 @@ Content-Type: text/html
RT-Attach-Message: yes
Content-Type: text/html
-<a href="{$RT::WebURL}?q={$Ticket->id}">{$RT::WebURL}?q={$Ticket->id}</a>
+<a href="{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}</a>
<br/>
<br/>
{$Transaction->Content(Type => 'text/html')}
@@ -609,7 +609,7 @@ Content-Type: text/html
<tr><td align="right"><b>Owner:</b></td><td>{$Ticket->OwnerObj->Name}</td></tr>
<tr><td align="right"><b>Requestors:</b></td><td>{$Ticket->RequestorAddresses}</td></tr>
<tr><td align="right"><b>Status:</b></td><td>{$Ticket->Status}</td></tr>
-<tr><td align="right"><b>Ticket URL:</b></td><td>{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}</td></tr>
+<tr><td align="right"><b>Ticket URL:</b></td><td><a href="{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}</a></td></tr>
</table>
<br/>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list