From: <sy...@us...> - 2008-04-24 19:00:30
|
Revision: 12671 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=12671&view=rev Author: sylvieg Date: 2008-04-24 12:00:30 -0700 (Thu, 24 Apr 2008) Log Message: ----------- [FIX]tracker: if an img field has no mentionned size, do not put it because IE (non FF) reduces the image to a size 0 Modified Paths: -------------- branches/1.10/templates/tracker_item_field_value.tpl Modified: branches/1.10/templates/tracker_item_field_value.tpl =================================================================== --- branches/1.10/templates/tracker_item_field_value.tpl 2008-04-24 18:58:00 UTC (rev 12670) +++ branches/1.10/templates/tracker_item_field_value.tpl 2008-04-24 19:00:30 UTC (rev 12671) @@ -98,9 +98,9 @@ {elseif $field_value.type eq 'i'} {if $field_value.value ne ''} {if $list_mode ne 'n'} - <img border="0" src="{$field_value.value}" width="{$field_value.options_array[0]}" height="{$field_value.options_array[1]}" alt="n/a" /> + <img border="0" src="{$field_value.value}"{if $field_value.options_array[0]} width="{$field_value.options_array[0]}"{/if}{if $field_value.options_array[1]} height="{$field_value.options_array[1]}"{/if} alt="" /> {else} - <img border="0" src="{$field_value.value}" width="{$field_value.options_array[2]}" height="{$field_value.options_array[3]}" alt="n/a" /> + <img border="0" src="{$field_value.value}"{if $field_value.options_array[2]} width="{$field_value.options_array[2]}"{/if}{if $field_value.options_array[3]} height="{$field_value.options_array[3]}"{/if} alt="" /> {/if} {else} <img border="0" src="img/icons/na_pict.gif" alt="n/a" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |