projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make boxes distinct from the background
[freeside.git]
/
rt
/
html
/
Ticket
/
Elements
/
ShowMessageStanza
diff --git
a/rt/html/Ticket/Elements/ShowMessageStanza
b/rt/html/Ticket/Elements/ShowMessageStanza
index
8b91261
..
8040096
100644
(file)
--- a/
rt/html/Ticket/Elements/ShowMessageStanza
+++ b/
rt/html/Ticket/Elements/ShowMessageStanza
@@
-1,8
+1,8
@@
-%#
{{{ BEGIN BPS TAGGED BLOCK
+%#
BEGIN BPS TAGGED BLOCK {{{
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-200
4
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-200
7
Best Practical Solutions, LLC
%# <jesse@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <jesse@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-22,7
+22,9
@@
%#
%# You should have received a copy of the GNU General Public License
%# along with this program; if not, write to the Free Software
%#
%# You should have received a copy of the GNU General Public License
%# along with this program; if not, write to the Free Software
-%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+%# 02110-1301 or visit their web page on the internet at
+%# http://www.gnu.org/copyleft/gpl.html.
%#
%#
%# CONTRIBUTION SUBMISSION POLICY:
%#
%#
%# CONTRIBUTION SUBMISSION POLICY:
@@
-42,9
+44,9
@@
%# works based on those contributions, and sublicense and distribute
%# those contributions and any derivatives thereof.
%#
%# works based on those contributions, and sublicense and distribute
%# those contributions and any derivatives thereof.
%#
-%#
}}} END BPS TAGGED BLOCK
+%#
END BPS TAGGED BLOCK }}}
% if (ref($Message)) {
% if (ref($Message)) {
-<
font color="<%$colors[$Depth]
%>">
+<
div class="message-stanza-depth-<% $Depth
%>">
<%perl>
foreach my $stanza (@$Message) {
if ( ref $stanza eq "ARRAY" ) {
<%perl>
foreach my $stanza (@$Message) {
if ( ref $stanza eq "ARRAY" ) {
@@
-57,24
+59,23
@@
foreach my $stanza (@$Message) {
my $content = $stanza->{raw};
RT::Interface::Web::EscapeUTF8(\$content);
$m->comp('/Elements/Callback', content => \$content, %ARGS);
my $content = $stanza->{raw};
RT::Interface::Web::EscapeUTF8(\$content);
$m->comp('/Elements/Callback', content => \$content, %ARGS);
- $content =~ s/\n/<br>/gi;
+ $content =~ s{$}{<br />}mg
+ if defined $content;
</%perl>
</%perl>
-<%$content |n%>
<br>
-%
}
+<%$content |n%>
+% }
% } # end foreach
% } # end foreach
-</
font
>
+</
div
>
% } else {
% } else {
-% my $content = $Message;
-%
RT::Interface::Web::EscapeUTF8(\$content);
-%
$m->comp('/Elements/Callback', content => \$content, %ARGS);
-%
$content =~ s/\n/<br>/gi
;
-<%$content |n%>
<br>
+%
my $content = $Message;
+% RT::Interface::Web::EscapeUTF8(\$content);
+% $m->comp('/Elements/Callback', content => \$content, %ARGS);
+%
$content =~ s{$}{<br />}mg
;
+<%$content |n%>
% }
<%INIT>
use URI::URL;
% }
<%INIT>
use URI::URL;
-my $server = 'fsck.com';
-my @colors = ('#000000', '#660000', '#006600', '#000066', '#cc0000', '#00cc00', '#0000cc', '#ff0000', '#00ff00', '#0000ff');
</%INIT>
<%ARGS>
$Message => undef
</%INIT>
<%ARGS>
$Message => undef