mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
48 lines
1.4 KiB
Text
48 lines
1.4 KiB
Text
<h1>
|
|
ENSL Movie Archive
|
|
</h1>
|
|
|
|
<p>
|
|
We recommend <%= link_to "VLC Player", "http://www.videolan.org/vlc/" %> for movie playback.
|
|
</p>
|
|
|
|
<%= form_tag movies_url(), :method => "get" do %>
|
|
Limit to:
|
|
<%= select_tag :filter, options_for_select({"5 stars" => 5, "4 stars" => 4, "3 stars" => 3, "2 stars" => 2, "1 stars" => 1}) %>
|
|
Order by:
|
|
<%= select_tag :order, options_for_select({"Ratings" => :ratings, "Date" => :date, "Author" => :author}) %>
|
|
<%= submit_tag "Filter" %>
|
|
<% end %>
|
|
|
|
<br />
|
|
|
|
<div id="movieTabs">
|
|
<ul id="movieTabs-nav" class="tabs">
|
|
<% Category.domain(Category::DOMAIN_MOVIES).ordered.each do |cat| %>
|
|
<li>
|
|
<a href="#<%= cat.id %>"><%= cat %></a>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<div class="box wide tabs">
|
|
<% Category.domain(Category::DOMAIN_MOVIES).each do |cat| %>
|
|
<div class="tab" id="<%= cat.id %>">
|
|
<div id="movieList">
|
|
<% @movies.each do |m| %>
|
|
<% next if m.category != cat %>
|
|
<%= render :partial => "movie", :object => m %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
var tabber1 = new Yetii({id: 'movieTabs'});
|
|
</script>
|
|
|
|
<% if cuser and DataFile.new(:directory_id => Directory::MOVIES).can_create? cuser %>
|
|
<%= link_to "New Movie", :controller => "data_files", :action => "new", :id => Directory::MOVIES %>
|
|
<% end %>
|