[Rt-commit] r3457 - in rt/branches/3.5-TESTING: . html/NoAuth/css html/Ticket/Elements

trs at bestpractical.com trs at bestpractical.com
Sat Jul 9 22:22:12 EDT 2005


Author: trs
Date: Sat Jul  9 22:22:10 2005
New Revision: 3457

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css
   rt/branches/3.5-TESTING/html/Ticket/Elements/PreviewScrips
   rt/branches/3.5-TESTING/html/Ticket/Elements/ShowMessageStanza
Log:
 r4972 at wintermute:  tom | 2005-07-09 21:56:29 -0400
 Semantic message stanza coloring


Modified: rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css
==============================================================================
--- rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css	(original)
+++ rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css	Sat Jul  9 22:22:10 2005
@@ -113,3 +113,15 @@
     clear: both;
     padding-left: 0.5em;
 }
+
+%# Message stanza colors
+.message-stanza-depth-1 { color: #000; }
+.message-stanza-depth-2 { color: #600; }
+.message-stanza-depth-3 { color: #060; }
+.message-stanza-depth-4 { color: #006; }
+.message-stanza-depth-5 { color: #c00; }
+.message-stanza-depth-6 { color: #0c0; }
+.message-stanza-depth-7 { color: #00c; }
+.message-stanza-depth-8 { color: #f00; }
+.message-stanza-depth-9 { color: #0f0; }
+.message-stanza-depth-10 { color: #00f; }

Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/PreviewScrips
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/PreviewScrips	(original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/PreviewScrips	Sat Jul  9 22:22:10 2005
@@ -92,6 +92,7 @@
 </%init>
 <h2><&|/l&>This message will be sent to...</&></h2>
 <i><&|/l&>(Check boxes to disable notifications to the listed recipients)</&></i><br>
+% if ($Object) {
 % foreach my $scrip (@{$Object->Scrips->Prepared}) {
 % next unless $scrip->ActionObj->Action->isa('RT::Action::SendEmail');
 <b><%$scrip->Description%></b><br>
@@ -111,6 +112,7 @@
 </textarea>
 % }
 %}
+%}
 <br>
 <h2><&|/l&>Messages about this ticket will not be sent to...</&></h2>
 <i><&|/l&>(Check boxes to enable notifications to the listed recipients)</&></i>

Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowMessageStanza
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/ShowMessageStanza	(original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowMessageStanza	Sat Jul  9 22:22:10 2005
@@ -44,7 +44,7 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 % if (ref($Message)) {
-<font color="<%$colors[$Depth]%>">
+<div class="message-stanza-depth-<% $Depth %>">
 <%perl>
 foreach my $stanza (@$Message) {
     if ( ref $stanza eq "ARRAY" ) {
@@ -60,21 +60,19 @@
                 $content =~ s/\n/<br>/gi if defined $content;
 
 </%perl>
-<%$content |n%><br>
+<%$content |n%>
 %       }
 % } # end foreach
-</font>
+</div>
 % } else {
 % my $content = $Message;
 %        RT::Interface::Web::EscapeUTF8(\$content);
 %        $m->comp('/Elements/Callback', content => \$content, %ARGS);
 %                $content =~ s/\n/<br>/gi;
-<%$content |n%><br>
+<%$content |n%>
 % }
 <%INIT>
 use URI::URL;
-my $server = 'fsck.com';
-my @colors = ('#000000', '#660000', '#006600', '#000066', '#cc0000', '#00cc00', '#0000cc', '#ff0000', '#00ff00', '#0000ff');
 </%INIT>
 <%ARGS>
 $Message => undef


More information about the Rt-commit mailing list