[Rt-commit] r7562 - in rt/branches/3.7-EXPERIMENTAL: . html/Ticket/Elements

jesse at bestpractical.com jesse at bestpractical.com
Wed Apr 18 20:54:48 EDT 2007


Author: jesse
Date: Wed Apr 18 20:54:48 2007
New Revision: 7562

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/SelfService/Display.html
   rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments

Log:
 r55718 at 241:  jesse | 2007-04-18 14:51:26 -0400
 * Make sure we don't show "Download with headers" from the selfservice UI


Modified: rt/branches/3.7-EXPERIMENTAL/html/SelfService/Display.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/SelfService/Display.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/SelfService/Display.html	Wed Apr 18 20:54:48 2007
@@ -74,6 +74,7 @@
       Ticket => $Ticket, 
       URIFile => "Display.html", 
       ShowHeaders => $ARGS{'ShowHeaders'},
+      DownloadableHeaders => 0,
       AttachPath => "Attachment", 
       Attachments => $attachments, 
       UpdatePath => "Update.html" 

Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments	Wed Apr 18 20:54:48 2007
@@ -56,13 +56,12 @@
     if ( $size ) {
 </%PERL>
 <div class="downloadattachment">
-<a href="<% $AttachPath %>/<% $Transaction->Id %>/<% $message->Id %>/<% ($message->Filename ||'')| u%>">
-<&|/l&>Download</&> <% $message->Filename || loc('(untitled)') %></a>
-% if ( !$message->Filename && $message->ContentType =~ /text/ ) {
-<span>[<a href="<% $AttachPath %>/WithHeaders/<% $message->Id %>"><% loc('with headers') %></a>]</span>
+<a href="<% $AttachPath %>/<% $Transaction->Id %>/<% $message->Id %>/<% ($message->Filename ||'')| u%>"><&|/l&>Download</&> <% $message->Filename || loc('(untitled)') %></a>
+% if ( $DownloadableHeaders && !$message->Filename && $message->ContentType =~ /text/  ) {
+ / <a href="<% $AttachPath %>/WithHeaders/<% $message->Id %>"><% loc('with headers') %></a>
 % }
 <br/>
-<span class="downloadcontenttype">[<% $message->ContentType %> <% $size_to_str->( $size ) %>]</span>
+<span class="downloadcontenttype"><% $message->ContentType %> <% $size_to_str->( $size ) %></span>
 </div>
 %   }
 
@@ -161,6 +160,7 @@
 $Transaction => undef
 $ShowHeaders => 0
 $Collapsed => undef
+$DownloadableHeaders => 1
 $ShowTitleBarCommands => 1
 $RowNum => 1
 $AttachPath => RT->Config->Get('WebPath')."/Ticket/Attachment"


More information about the Rt-commit mailing list