Skip to content

Instantly share code, notes, and snippets.

@jagmitg
Created May 1, 2012 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagmitg/2572312 to your computer and use it in GitHub Desktop.
Save jagmitg/2572312 to your computer and use it in GitHub Desktop.
<h1 class="headersOne"><%= @cinema.name %></h1>
<b>Films currently shown:</b>
<ol class="noDots">
<% @cinema.screenings.each do |screening, film| %>
<li>
<div data-role="collapsible" data-theme="b" data-content-theme="d" >
<h3><%= screening.film.title %></h3>
<p style="min-height:2px;">
<p style="height:170px;">
<img id="cineworldImage" src="http://cineworld.co.uk/<%= screening.film.poster %>" align="left" style="padding-right:5px;"/>
<strong>Name: <%= link_to screening.film.title, screening.film %>
</strong><br/><br/>
<strong>Synopsis:</strong> <%= screening.film.synopsis %>
</p>
<strong>Film Times</strong>
<% screening.shows.group_by(&:day).each do |day, shows| %>
<p><%= day %></p>
<ul style="width:90%;">
<% shows.each_with_index do |show, i| %>
<li style="display: inline-block;">
<%= ?| if i > 0 %>
<%= link_to show.showed_at, show %>
</li>
<% end %>
</ul>
<% end %>
</p>
</div>
</li>
<% end %>
</ol>
<%= link_to 'Back', cinemas_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment