<% if movie.picture %> <%= image_tag movie.picture.url, :class => "centered" %> <% end %>

<%= namelink movie %>

<%= cascade movie, ["content", "format", ["Author", :user], "length_s", ["Views", "view_count"], ["Date", "file.created_at"]] %> <% (params[:action] == "show" ? movie.all_files : [movie.file]).each do |file| %> File: <%= link_to File.basename(file.name.to_s), file.url %>
  • MD5: <%= file.md5_s %>
  • Size: <%= file.size_s %> MB
<% end %> <% if cuser and movie.can_update? cuser %>
<%= link_to 'Edit', edit_movie_path(movie), class: 'button tiny' %> <%= link_to 'Make a Preview', { action: "preview", id: movie }, class: 'button tiny' %> <%= link_to 'Destroy', movie, confirm: 'Are you sure?', method: :delete, class: 'button tiny' %>
<% end %>