Movie Archive

We recommend <%= link_to "VLC Player", "http://www.videolan.org/vlc/" %> for movie playback.

<%= form_tag movies_url, method: "get" do %>
<%= select_tag :filter, options_for_select({"5 stars" => 5, "4 stars" => 4, "3 stars" => 3, "2 stars" => 2, "1 stars" => 1}) %>
<%= select_tag :order, options_for_select({"Ratings" => :ratings, "Date" => :date, "Author" => :author}) %>
<%= submit_tag "Filter" %>
<% end %>
<% Category.domain(Category::DOMAIN_MOVIES).each do |cat| %>
<% @movies.each do |m| %> <% next if m.category != cat %> <%= render partial: "movie", object: m %> <% end %>
<% end %>
<% if cuser and DataFile.new(directory_id: Directory::MOVIES).can_create? cuser %> <%= link_to "New Movie", { controller: "data_files", action: "new", id: Directory::MOVIES }, { class: 'button' } %> <% end %>