{if not $smarty.session.uid} {* if unlogged *} {assign var=disabled value='onClick="alertNoChange();"'} {else} {assign var=disabled value=""} {/if}
{$TITLE.file_edition} {$file.bug_id.value}
{$file.title.field_conf.title} : {$file.title.value}

{if $error.status} {/if} {assign var=Shift value='null'} {foreach key=k item=v name=std_fields from=$fc_filtered} {* if true, create a new table row *} {if $smarty.foreach.std_fields.iteration is odd && $Shift=='null'} {else} {if $smarty.foreach.std_fields.iteration is even && $Shift=='offset'} {else} {if $mpfile->sp_cache.$k->label} {/if} {/if} {/if} {if $mpfile->sp_cache.$k->dashAfter || $mpfile->sp_cache.$k->label} {if $mpfile->sp_cache.$k->dashAfter} {/if} {if $smarty.foreach.std_fields.iteration is odd} {if $Shift=='null'} {assign var=Shift value='offset'} {else} {assign var=Shift value='offset'} {/if} {else} {if $Shift=='offset'} {assign var=Shift value='null'} {else} {assign var=Shift value='null'} {/if} {/if} {else} {if $smarty.foreach.std_fields.iteration is even && $Shift=='null'} {/if} {if $smarty.foreach.std_fields.iteration is odd && $Shift=='offset'} {/if} {/if} {/foreach}
{$error.status}
{if $mpfile->sp_cache.$k->highlight_url} {/if} {$v.title} : {if $mpfile->sp_cache.$k->highlight_url} {/if} {if $k == 'assigned_to'} {build_dynamic_input field_conf=$v file_id=$file.bug_id.value name='_no_name' value=$file.$k.value mpfile=$mpfile read_only=1 } {else} {build_dynamic_input field_conf=$v file_id=$file.bug_id.value name=$v.field_name value=$file.$k.value mpfile=$mpfile read_only=1 } {/if}    

{if $smarty.session.uid} {* if logged *}
{$STRING.BUGDISPLAY.bugdependency} : {$bug_dependencies}
{$STRING.BUGDISPLAY.contact_list} :
{if count($contact_list)} {foreach key=k item=v name=cclist from=$contact_list} {$v.first_name|htmlspecialchars} {$v.last_name|htmlspecialchars} {/foreach} {else} {$STRING.nobody} {/if}
{/if}
{if $attachments} {section name=attachment loop=$attachments} {/section} {else} {/if}
{$STRING.BUGDISPLAY.attachments} :
{$STRING.BUGDISPLAY.name} | {$STRING.BUGDISPLAY.size} | {$STRING.BUGDISPLAY.type} | {$STRING.BUGDISPLAY.created}  
{$attachments[attachment].file_name|stripslashes} | {if $attachments[attachment].file_size > 1024} {math equation="(round(x) / 1024 * 100) / 100" x=$attachments[attachment].file_size assign=file_size} {$file_size|number_format}k {else} {$attachments[attachment].file_size|number_format}b {/if} | {$attachments[attachment].mime_type} | {$attachments[attachment].created_date|date:DATE_FORMAT} | View
{$STRING.BUGDISPLAY.noattachments}


{section name=comment loop=$comments} {/section}
{$STRING.BUGDISPLAY.comments} :
--- {$STRING.BUGDISPLAY.postedby} : {build_dynamic_input field_conf=$file.created_by.field_conf file_id=$file.bug_id.value name='_no_name' value=$file.created_by.value mpfile=$mpfile read_only=1 no_html=1 } {$STRING.BUGDISPLAY.date} : {$file.created_date.value|date:TIME_FORMAT} {$STRING.BUGDISPLAY.dateon} {$file.created_date.value|date:DATE_FORMAT} ---
{$STRING.description_of_file} :
{$file.description.value|htmltruespace|nl2br|format_comments}

--- {$STRING.BUGDISPLAY.postedby} : {$comments[comment].login|maskemail} {$STRING.BUGDISPLAY.date} : {$comments[comment].created_date|date:TIME_FORMAT} {$STRING.BUGDISPLAY.dateon} {$comments[comment].created_date|date:DATE_FORMAT} ---
{* $comments[comment].comment_text|stripslashes|htmltruespace|nl2br|format_comments *} {* I consider that the comment has been stripslashed before being inserted in DB *} {$comments[comment].comment_text|htmltruespace|nl2br|format_comments}


   {$STRING.back} FM {$file.bug_id.value}