[Rt-commit] r17836 - rt/3.8/trunk/share/html/Ticket/Elements
elacour at bestpractical.com
elacour at bestpractical.com
Mon Jan 19 08:51:26 EST 2009
Author: elacour
Date: Mon Jan 19 08:51:26 2009
New Revision: 17836
Modified:
rt/3.8/trunk/share/html/Ticket/Elements/ShowTransactionAttachments
Log:
Add alt and title to images attachments in ticket display.
Modified: rt/3.8/trunk/share/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/3.8/trunk/share/html/Ticket/Elements/ShowTransactionAttachments (original)
+++ rt/3.8/trunk/share/html/Ticket/Elements/ShowTransactionAttachments Mon Jan 19 08:51:26 2009
@@ -142,7 +142,15 @@
# if it's an image, show it as an image
elsif ( RT->Config->Get('ShowTransactionImages') and $message->ContentType =~ /^image\//i ) {
- $m->out('<img src="'
+ my $filename = $message->Filename || loc('(untitled)');
+ $m->out('<img'
+ . ' alt="'
+ . $filename
+ . '"'
+ . ' title="'
+ . $filename
+ . '"'
+ . ' src="'
. $AttachPath . '/'
. $Transaction->Id . '/'
. $message->Id
More information about the Rt-commit
mailing list