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

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


Author: trs
Date: Sat Jul  9 12:12:35 2005
New Revision: 3449

Added:
   rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css   (contents, props changed)
Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/NoAuth/css/body.css
   rt/branches/3.5-TESTING/html/NoAuth/css/main.css
   rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory
   rt/branches/3.5-TESTING/html/Ticket/Elements/ShowSummary
   rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTransaction
Log:
 r4952 at wintermute:  tom | 2005-07-09 12:10:22 -0400
 Transaction and ticket info colorization.
 
 Think it's obvious enough?  It's kinda to mimic how it's shown in history.


Modified: rt/branches/3.5-TESTING/html/NoAuth/css/body.css
==============================================================================
--- rt/branches/3.5-TESTING/html/NoAuth/css/body.css	(original)
+++ rt/branches/3.5-TESTING/html/NoAuth/css/body.css	Sat Jul  9 12:12:35 2005
@@ -67,6 +67,8 @@
     font-weight: bold;
 }
 
+.titlebox { margin-bottom: 1em; }
+
 .titlebox .content {
     margin: 1em 2em 0 2em;
 }

Modified: rt/branches/3.5-TESTING/html/NoAuth/css/main.css
==============================================================================
--- rt/branches/3.5-TESTING/html/NoAuth/css/main.css	(original)
+++ rt/branches/3.5-TESTING/html/NoAuth/css/main.css	Sat Jul  9 12:12:35 2005
@@ -47,6 +47,7 @@
 @import "misc.css";
 @import "body.css";
 @import "forms.css";
+ at import "transactions.css";
 @import "nav.css";
 @import "nav-left.css";
 @import "header.css";

Added: rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css
==============================================================================
--- (empty file)
+++ rt/branches/3.5-TESTING/html/NoAuth/css/transactions.css	Sat Jul  9 12:12:35 2005
@@ -0,0 +1,85 @@
+%# BEGIN BPS TAGGED BLOCK {{{
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC 
+%#                                          <jesse at bestpractical.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# 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.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# END BPS TAGGED BLOCK }}}
+
+.ticket-transaction .date { font-size: 0.9em; }
+.ticket-transaction .description { font-weight: bold; }
+.ticket-transaction .actions {
+    text-align: right;
+    font-weight: bold;
+}
+
+.ticket-transaction .type {
+    background: #ccc;
+    width: 1.5em;
+    color: white;
+    text-align: center;
+}
+
+#body .ticket-transaction .type :link,
+#body .ticket-transaction .type :visited
+{
+    color: white;
+}
+
+#body .ticket-transaction .type.other :link,
+#body .ticket-transaction .type.other :visited
+{
+    color: black;
+}
+
+.ticket-transaction .type.basics { background: #b32; }
+.ticket-summary .ticket-info-basics .content { border-left: 0.5em solid #b32; }
+
+.ticket-transaction .type.people { background: #48c; }
+.ticket-summary .ticket-info-people .content { border-left: 0.5em solid #48c; }
+
+.ticket-transaction .type.links { background: #ad8; }
+.ticket-summary .ticket-info-links .content  { border-left: 0.5em solid #ad8; }
+
+.ticket-transaction .type.dates { background: #d71; }
+.ticket-summary .ticket-info-dates .content  { border-left: 0.5em solid #d71; }
+
+.ticket-transaction .type.message { background: #069; }

Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory	(original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory	Sat Jul  9 12:12:35 2005
@@ -77,10 +77,6 @@
 my @attachments = @{$Attachments->ItemsArrayRef()};
 my @attachment_content = @{$AttachmentContent->ItemsArrayRef()};
 
-
-
-
-
 while ( my $Transaction = $Transactions->Next ) {
     my $skip = 0;
     $m->comp( '/Elements/Callback',

Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowSummary
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/ShowSummary	(original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowSummary	Sat Jul  9 12:12:35 2005
@@ -43,57 +43,52 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-      <table WIDTH="100%" class="ticketsummary" >
+      <table width="100%" class="ticket-summary">
       <tr>
-	<td VALIGN=TOP WIDTH="50%" class="boxcontainer">
+	<td valign="top" width="50%" class="boxcontainer">
 	  <&| /Widgets/TitleBox, title => loc('The Basics'), 
 		title_href =>"$RT::WebPath/Ticket/Modify.html?id=".$Ticket->Id, 
-		title_class=> 'inverse' &>
+		class => 'ticket-info-basics' &>
 	        <& /Ticket/Elements/ShowBasics, Ticket => $Ticket &>
 	  </&>
-          <br>
+
 % if ($Ticket->QueueObj->TicketCustomFields->First) {
 	  <&| /Widgets/TitleBox, title => loc('Custom Fields'), 
 		title_href =>"$RT::WebPath/Ticket/Modify.html?id=".$Ticket->Id, 
-		title_class=> 'inverse'  &> 
+		class => 'ticket-info-basics'  &> 
 	        <& /Ticket/Elements/ShowCustomFields, Ticket => $Ticket &>
 	  </&>
-
-<br>
 % }
 	  <&| /Widgets/TitleBox, title => loc('People'), 
 		title_href =>"$RT::WebPath/Ticket/ModifyPeople.html?id=".$Ticket->Id, 
-		title_class=> 'inverse' &>
-	  <& /Ticket/Elements/ShowPeople, Ticket => $Ticket &>
+		class => 'ticket-info-people' &>
+            <& /Ticket/Elements/ShowPeople, Ticket => $Ticket &>
 	  </&>
-	<br/>
+
 	  <& /Ticket/Elements/ShowAttachments, Ticket => $Ticket, Attachments => $Attachments &>
-        <br/>
+
 	  <& /Ticket/Elements/ShowRequestor, Ticket => $Ticket &>
 	</td>
-	<td VALIGN=TOP WIDTH="50%" class="boxcontainer">
+	<td valign="top" width="50%" class="boxcontainer">
 	  <&|/Widgets/TitleBox, title => loc("Reminders"),
 		title_href =>"$RT::WebPath/Ticket/Reminders.html?id=".$Ticket->Id, 
-		title_class=> 'inverse',  
-		 color => "#666699" &>
+		class => 'ticket-info-reminders' &>
             <form action="<%$RT::WebPath%>/Ticket/Display.html" method="post">
-	  <& /Ticket/Elements/Reminders, Ticket => $Ticket, ShowCompleted => 0 &>
-        <div align="right"><input type="submit" class="button" value="Save" /></div>
-        </form>
+	      <& /Ticket/Elements/Reminders, Ticket => $Ticket, ShowCompleted => 0 &>
+              <div align="right"><input type="submit" class="button" value="Save" /></div>
+            </form>
 	  </&>
-        <br />
 	  <&| /Widgets/TitleBox, title => loc("Dates"),
 		title_href =>"$RT::WebPath/Ticket/ModifyDates.html?id=".$Ticket->Id, 
-		title_class=> 'inverse' &>
+		class => 'ticket-info-dates' &>
 	  <& /Ticket/Elements/ShowDates, Ticket => $Ticket &>
 	  </&>
-	<br/>  
+
 	  <&| /Widgets/TitleBox, title => loc('Links'), 
 		title_href => "$RT::WebPath/Ticket/ModifyLinks.html?id=".$Ticket->Id, 
-		title_class=> 'inverse',  
-		titleright => ''&>
+		class => 'ticket-info-links' &>
 	        <& /Elements/ShowLinks, Ticket => $Ticket &>
-	</&>
+          </&>
 
 	</td>
       </tr>

Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTransaction
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTransaction	(original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTransaction	Sat Jul  9 12:12:35 2005
@@ -43,24 +43,27 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-<tr class="<% $RowNum%2 ? 'oddline' : 'evenline'%>" >
-<td rowspan="2" valign="top" bgcolor="<%$bgcolor%>"><a name="txn-<%$Transaction->Id%>" href="#txn-<%$Transaction->Id%>">#</a><% $LastTransaction ? '<a name="lasttrans">&nbsp;</a>' : '&nbsp;' |n %></td>
-<td>&nbsp&nbsp;</td>
-<td><font size=-2><% $transdate|n %></font>&nbsp;</td>
+<tr class="<% $RowNum%2 ? 'oddline' : 'evenline'%> ticket-transaction" >
+  <td rowspan="2" valign="top" class="<% $type_class %> type">
+    <a name="txn-<%$Transaction->Id%>" href="#txn-<%$Transaction->Id%>">#</a>
+    <% $LastTransaction ? '<a name="lasttrans">&nbsp;</a>' : '&nbsp;' |n %>
+  </td>
+  <td class="date"><% $transdate|n %></td>
 % my $desc = $Transaction->BriefDescription;
 % $m->comp('/Elements/Callback', _CallbackName => 'ModifyDisplay', text => \$desc, Transaction => $Transaction, %ARGS);
-<td ALIGN="LEFT"><b><%$Transaction->CreatorObj->Name%> - <%$TicketString%> <%$desc%>
-
-</b></td>
-<td><%$TimeTaken%>&nbsp;</td>
-<td ALIGN="RIGHT"><font size=-1><%$titlebar_commands|n%></font></td>
+  <td class="description">
+    <%$Transaction->CreatorObj->Name%> - <%$TicketString%> <%$desc%>
+  </td>
+  <td class="time-taken"><%$TimeTaken%></td>
+  <td class="actions"><%$titlebar_commands|n%></td>
 </tr>
-<tr class="<% $RowNum%2 ? 'oddline' : 'evenline'%>"><td colspan=5>
+<tr class="<% $RowNum%2 ? 'oddline' : 'evenline'%> ticket-transaction">
+  <td colspan="5" class="content">
 % if ($Transaction->CustomFieldValues->Count) {
-<& /Elements/ShowCustomFields, Object => $Transaction &>
+    <& /Elements/ShowCustomFields, Object => $Transaction &>
 % }
 % $m->comp('ShowTransactionAttachments', %ARGS, Parent => 0) unless ($Collapsed ||!$ShowBody);
-</td>
+  </td>
 </tr>
 
 <%ARGS>
@@ -81,37 +84,37 @@
 
 <%INIT>
 
-my ( $TimeTaken, $TicketString, $bgcolor );
+my ( $TimeTaken, $TicketString, $type_class );
 
 my $transdate = $Transaction->CreatedAsString();
 $transdate =~ s/\s/&nbsp;/g;
 
 if ( $Transaction->Type =~ /^(Create|Correspond|Comment$)/ ) {
     if ( $Transaction->IsInbound ) {
-        $bgcolor = "#336699";
+        $type_class = 'message';
     }
     else {
-        $bgcolor = "#339999";
+        $type_class = 'message';
     }
 }
 elsif (    ( $Transaction->Field =~ /^Owner$/ )
         or ( $Transaction->Type =~ /^(AddWatcher|DelWatcher)$/ ) ) {
-    $bgcolor = "#333399";
+    $type_class = 'people';
 
 }
 elsif ( $Transaction->Type =~ /^(AddLink|DeleteLink)$/ ) {
-    $bgcolor = "#336633";
+    $type_class = 'links';
 }
 elsif ( $Transaction->Type =~ /^(Status|Set|Told)$/ ) {
     if ( $Transaction->Field =~ /^(Told|Starts|Started|Due)$/ ) {
-        $bgcolor = "#663366";
+        $type_class = 'dates';
     }
     else {
-        $bgcolor = "#993333";
+        $type_class = 'basics';
     }
 }
 else {
-    $bgcolor = "#cccccc";
+    $type_class = 'other';
 }
 
 if ( $Ticket->Id != $Transaction->Ticket ) {


More information about the Rt-commit mailing list