[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-102-gc10d6c8
Ruslan Zakirov
ruz at bestpractical.com
Wed Nov 25 21:01:29 EST 2009
The branch, 3.8-trunk has been updated
via c10d6c8609698d406a898765c653cdba1049a654 (commit)
via d735e4c348be32e67fc1a65b8b607cada5e206a6 (commit)
via c8624f776f8e4ad66769def0d3aecccc60b6b53c (commit)
via 76ca332a4c928d90e708abe5103573aac91d859f (commit)
from a639b1fe0fa90d3a56fa996e64d5364112faf43a (commit)
Summary of changes:
share/html/Ticket/Create.html | 14 ++++++++------
share/html/Ticket/Elements/ShowTransaction | 2 +-
2 files changed, 9 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit 76ca332a4c928d90e708abe5103573aac91d859f
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Wed Nov 25 23:27:11 2009 +0300
missing localization
diff --git a/share/html/Ticket/Elements/ShowTransaction b/share/html/Ticket/Elements/ShowTransaction
index 8a98d0a..a533323 100755
--- a/share/html/Ticket/Elements/ShowTransaction
+++ b/share/html/Ticket/Elements/ShowTransaction
@@ -142,7 +142,7 @@ unless ( $type_class ) {
my $TicketString = '';
if ( $Ticket->Id != $Transaction->Ticket ) {
- $TicketString = "Ticket " . $Transaction->Ticket . ": ";
+ $TicketString = loc("Ticket #[_1]:", $Transaction->Ticket) .' ';
}
my $TimeTaken = '';
commit c8624f776f8e4ad66769def0d3aecccc60b6b53c
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Thu Nov 26 03:24:26 2009 +0300
allow to change page title via callback on Create
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index 0f817ab..a6d59af 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -46,7 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<& /Elements/Header,
- Title => loc("Create a new ticket"),
+ Title => $title,
onload => "function () { hide(document.getElementById('Ticket-Create-details')) }" &>
<& /Elements/Tabs,
current_toptab => "Ticket/Create.html",
@@ -61,7 +61,7 @@
% }
<div id="Ticket-Create-basics">
<a name="basics"></a>
-<&| /Widgets/TitleBox, title => loc("Create a new ticket") &>
+<&| /Widgets/TitleBox, title => $title &>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td class="label"><&|/l&>Queue</&>:</td>
<td class="value"><& Elements/ShowQueue, QueueObj => $QueueObj &>
@@ -327,12 +327,14 @@ if ($CloneTicket) {
}
-
my @results;
+
+my $title = loc("Create a new ticket");
+
my $QueueObj = new RT::Queue($session{'CurrentUser'});
$QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));
-$m->callback( QueueObj => $QueueObj, ARGSRef => \%ARGS );
+$m->callback( QueueObj => $QueueObj, title => \$title, results => \@results, ARGSRef => \%ARGS );
$QueueObj->Disabled && Abort(loc("Cannot create tickets in a disabled queue."));
commit d735e4c348be32e67fc1a65b8b607cada5e206a6
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Thu Nov 26 03:34:26 2009 +0300
another place where title is used on Create
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index a6d59af..824c569 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -50,7 +50,7 @@
onload => "function () { hide(document.getElementById('Ticket-Create-details')) }" &>
<& /Elements/Tabs,
current_toptab => "Ticket/Create.html",
- Title => loc("Create a new ticket"),
+ Title => $title,
actions => $actions &>
<& /Elements/ListActions, actions => \@results &>
<form action="<% RT->Config->Get('WebPath') %>/Ticket/Create.html" method="post" enctype="multipart/form-data" name="TicketCreate">
commit c10d6c8609698d406a898765c653cdba1049a654
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Thu Nov 26 03:34:54 2009 +0300
pass QueueObj into callback, we already loaded object
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index 824c569..28b6556 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -55,7 +55,7 @@
<& /Elements/ListActions, actions => \@results &>
<form action="<% RT->Config->Get('WebPath') %>/Ticket/Create.html" method="post" enctype="multipart/form-data" name="TicketCreate">
<input type="hidden" class="hidden" name="id" value="new" />
-% $m->callback( CallbackName => 'FormStart', ARGSRef => \%ARGS );
+% $m->callback( CallbackName => 'FormStart', QueueObj => $QueueObj, ARGSRef => \%ARGS );
% if ($gnupg_widget) {
<& /Elements/GnuPG/SignEncryptWidget:ShowIssues, self => $gnupg_widget &>
% }
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list