<% if @media_file %> <% if @media_file.file_type == "image" %>
<%=t(:preview, :scope => [:media_file, :edit])%>
<%= image_tag(url_for( :action => "show", :controller => "/skyline/media_files_data", :media_dir_id => @media_dir, :name => @media_file.name, :size => '100x100'), :alt => "Image") %>
<%end%>
<%= t(:meta_data, :scope => [:media_file,:edit]) %>
<% if @media_file.file_type == "image" && @media_file.dimension.present? %>
<%=t(:size, :scope => [:media_file, :edit])%>:
<%=@media_file.dimension['width'] %>x<%=@media_file.dimension['height'] %>
<%end%>
<%=t(:type, :scope => [:media_file, :edit])%>:
<%=@media_file.file_type %>
<%=t(:filesize, :scope => [:media_file, :edit])%>:
<%= number_to_human_size @media_file.size %>
<%= Skyline::MediaFile.human_attribute_name("name") %>
<%= @media_file.name %>
<%= Skyline::MediaFile.human_attribute_name("title") %>
<%= @media_file.title %>
<%= Skyline::MediaFile.human_attribute_name("description")%>
<%= @media_file.description%>
<% end %>