{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{def $state=array( 'old', 'new' )
     $counter=0}
{foreach array( $diff.old_content, $diff.new_content ) as $attr}
    {if $attr.content.filename}
        <div class="block">
            <label>{'Type'|i18n( 'design/standard/content/datatype' )}:</label>
            <p>
            {switch match=$attr.contentclass_attribute.data_text1}
            {case match=flash}{'Flash'|i18n( 'design/standard/content/datatype' )}{/case}
            {case match=quick_time}{'QuickTime'|i18n( 'design/standard/content/datatype' )}{/case}
            {case match=real_player}{'RealPlayer'|i18n( 'design/standard/content/datatype' )}{/case}
            {case match=silverlight}{'Silverlight'|i18n( 'design/standard/content/datatype' )}{/case}
            {case match=windows_media_player}{'Windows Media Player'|i18n( 'design/standard/content/datatype' )}{/case}
            {case}{'Unknown'|i18n( 'design/standard/content/datatype' )}{/case}
            {/switch}
            </p>
        </div>

        {switch match=$attr.contentclass_attribute.data_text1}
        {case match=flash}
        <div class="attribute-view-diff-{$state[$counter]}">
        {set $counter=inc( $counter )}
            <label>{'Version %ver'|i18n( 'design/standard/content/datatype',, hash( '%ver', $attr.version ) )}:</label>
            <table class="list" cellspacing="0">
            <tr>
                <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Width'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Height'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Quality'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Autoplay'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Loop'|i18n( 'design/standard/content/datatype' )}</th>
            </tr>
            <tr>
                <td>{$attr.content.original_filename}</td>
                <td>{$attr.content.mime_type}</td>
                <td>{$attr.content.filesize|si( byte )}</td>
                <td>{if $attr.content.width|gt( 0 )}{$attr.content.width}{/if}</td>
                <td>{if $attr.content.height|gt( 0 )}{$attr.content.height}{/if}</td>
                <td>{$attr.content.quality}</td>
                <td>{if $attr.content.is_autoplay}True{else}False{/if}</td>
                <td>{if $attr.content.is_loop}True{else}False{/if}</td>
            </tr>
            </table>
        </div>
        
        {/case}

        {case match=quick_time}
        <div class="block">
            <label>{'Current file'|i18n( 'design/standard/content/datatype' )}:</label>
            <table class="list" cellspacing="0">
            <tr>
                <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Width'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Height'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Quality'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Autoplay'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Loop'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Controller'|i18n( 'design/standard/content/datatype' )}</th>
            </tr>
            <tr>
                <td>{$attr.content.original_filename}</td>
                <td>{$attr.content.mime_type}</td>
                <td>{$attr.content.filesize|si( byte )}</td>
                <td>{if $attr.content.width|gt( 0 )}{$attr.content.width}{/if}</td>
                <td>{if $attr.content.height|gt( 0 )}{$attr.content.height}{/if}</td>
                <td>{$attr.content.quality}</td>
                <td>{if $attr.content.is_autoplay}True{else}False{/if}</td>
                <td>{if $attr.content.is_loop}True{else}False{/if}</td>
                <td>{if $attr.content.has_controller}True{else}False{/if}</td>
            </tr>
            </table>
        </div>
        {/case}

        {case match=windows_media_player}
        <div class="block">
            <label>{'Current file'|i18n( 'design/standard/content/datatype' )}:</label>
            <table class="list" cellspacing="0">
            <tr>
                <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Width'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Height'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Quality'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Autoplay'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Loop'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Controller'|i18n( 'design/standard/content/datatype' )}</th>
            </tr>
            <tr>
                <td>{$attr.content.original_filename}</td>
                <td>{$attr.content.mime_type}</td>
                <td>{$attr.content.filesize|si( byte )}</td>
                <td>{if $attr.content.width|gt( 0 )}{$attr.content.width}{/if}</td>
                <td>{if $attr.content.height|gt( 0 )}{$attr.content.height}{/if}</td>
                <td>{$attr.content.quality}</td>
                <td>{if $attr.content.is_autoplay}True{else}False{/if}</td>
                <td>{if $attr.content.is_loop}True{else}False{/if}</td>
                <td>{if $attr.content.has_controller}True{else}False{/if}</td>
            </tr>
            </table>
        </div>
        {/case}

        {case match=real_player}
        <div class="block">
            <label>{'Current file'|i18n( 'design/standard/content/datatype' )}:</label>
            <table class="list" cellspacing="0">
            <tr>
                <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Width'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Height'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Quality'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Autoplay'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Loop'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Controls'|i18n( 'design/standard/content/datatype' )}</th>
            </tr>
            <tr>
                <td>{$attr.content.original_filename}</td>
                <td>{$attr.content.mime_type}</td>
                <td>{$attr.content.filesize|si( byte )}</td>
                <td>{if $attr.content.width|gt( 0 )}{$attr.content.width}{/if}</td>
                <td>{if $attr.content.height|gt( 0 )}{$attr.content.height}{/if}</td>
                <td>{$attr.content.quality}</td>
                <td>{if $attr.content.is_autoplay}True{else}False{/if}</td>
                <td>{if $attr.content.is_loop}True{else}False{/if}</td>
                <td>{$attr.content.controls}</td>
            </tr>
            </table>
        </div>
        {/case}

        {case match=silverlight}
        <div class="block">
            <label>{'Current file'|i18n( 'design/standard/content/datatype' )}:</label>
            <table class="list" cellspacing="0">
            <tr>
                <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Width'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Height'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Quality'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Autoplay'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Loop'|i18n( 'design/standard/content/datatype' )}</th>
                <th>{'Controls'|i18n( 'design/standard/content/datatype' )}</th>
            </tr>
            <tr>
                <td>{$attr.content.original_filename}</td>
                <td>{$attr.content.mime_type}</td>
                <td>{$attr.content.filesize|si( byte )}</td>
                <td>{if $attr.content.width|gt( 0 )}{$attr.content.width}{/if}</td>
                <td>{if $attr.content.height|gt( 0 )}{$attr.content.height}{/if}</td>
                <td>{$attr.content.quality}</td>
                <td>{if $attr.content.is_autoplay}True{else}False{/if}</td>
                <td>{if $attr.content.is_loop}True{else}False{/if}</td>
                <td>{$attr.content.controls}</td>
            </tr>
            </table>
        </div>
        {/case}
        {/switch}

    {else}
        <div class="block">
            <label>{'Version %ver'|i18n( 'design/standard/content/datatype',, hash( '%ver', $attr.version ) )}:</label>
            {'No media file is available.'|i18n( 'design/standard/content/datatype' )}
        </div>
    {/if}
{/foreach}
