Created
November 20, 2011 00:02
-
-
Save jagmitg/1379564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 style="text-transform:uppercase;text-align:center;border-bottom:2px solid black;padding-bottom:10px;">Cinema listings for Cineworld</h1> | |
<table> | |
<tr> | |
<th style="text-decoration:underline;">ID</th> | |
<th style="padding-right:50px;"></th> | |
<th style="text-decoration:underline;">Name</th> | |
<th style="padding-right:50px;"></th> | |
<th style="text-decoration:underline;">Address</th> | |
<th style="padding-right:50px;"></th> | |
<th style="text-decoration:underline;">Telephone</th> | |
<th style="padding-right:50px;"></th> | |
<th style="text-decoration:underline;">Link</th> | |
</tr> | |
<% @cinemas.each do |cinema| %> | |
<tr> | |
<td style="border-bottom:1px solid black;"><%= cinema.cinema_id %></td> | |
<td style="padding-right:50px;border-bottom:1px solid black;"></th> | |
<td style="border-bottom:1px solid black;"><%= cinema.name %></td> | |
<td style="padding-right:50px;border-bottom:1px solid black;"></th> | |
<td style="width:200px;border-bottom:1px solid black;"><%= cinema.url %><br/><%= cinema.postcode %></td> | |
<td style="padding-right:30px;border-bottom:1px solid black;"></td> | |
<td style="border-bottom:1px solid black;"><%= cinema.telephone %></td> | |
<td style="padding-right:20px;border-bottom:1px solid black;"></td> | |
<td style="border-bottom:1px solid black;"><%= link_to 'Cinema Listing', cinema %></td> | |
</tr> | |
<% end %> | |
</table> | |
<br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Listing films</h1> | |
<table> | |
<tr> | |
<th>Title</th> | |
<th>Rating</th> | |
<th>Release</th> | |
<th>Length</th> | |
<th>Poster</th> | |
<th>Director</th> | |
<th>Synopsis</th> | |
<th>Cast</th> | |
<th></th> | |
<th></th> | |
<th></th> | |
</tr> | |
<% @films.each do |film| %> | |
<tr> | |
<td><%= film.title %></td> | |
<td><%= film.rating %></td> | |
<td><%= film.release %></td> | |
<td><%= film.length %></td> | |
<td><img src="http://cineworld.co.uk/<%= film.poster %>"/></td> | |
<td><%= film.director %></td> | |
<td><%= film.synopsis %></td> | |
<td><%= film.cast %></td> | |
<td></td> | |
<td></td> | |
<td></td> | |
</tr> | |
<% end %> | |
</table> | |
<br /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment