Skip to content

Commit

Permalink
Made slight changes to restaurants view
Browse files Browse the repository at this point in the history
  • Loading branch information
brennascurlock committed May 3, 2011
1 parent f96eb81 commit af0b570
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 4 additions & 6 deletions app/views/restaurants/index.html.erb
@@ -1,18 +1,16 @@
<h1>Listing restaurants</h1> <h1>Restaurants</h1>


<table> <table>




<% @restaurants.each do |restaurant| %> <% @restaurants.each do |restaurant| %>
<tr> <tr>
<td><%= restaurant.name %></td> <td><%= link_to restaurant.name, restaurant %></td>
<td><%= restaurant.location %></td> <td><%= restaurant.location %></td>
<td><%= "Closed" if restaurant.open == false %></td> <td><%= "Closed" if restaurant.open == false %></td>
<td><%= link_to 'Show', restaurant %></td>
<td><%= link_to 'Edit', edit_restaurant_path(restaurant) %></td>
<td><%= link_to 'Destroy', restaurant, :confirm => 'Are you sure?', :method => :delete %></td>
</tr> </tr>
<% end %> <% end %>

</table> </table>


<br /> <br />
Expand Down
6 changes: 3 additions & 3 deletions app/views/restaurants/show.html.erb
Expand Up @@ -10,10 +10,10 @@
<%= @restaurant.location %> <%= @restaurant.location %>
</p> </p>


<p> <p id="closed">
<b>Open:</b> <% @restaurant.open %>
<%= @restaurant.open %>
</p> </p>

<p>Visits: <p>Visits:
<% @visits.each do |visit|%> <% @visits.each do |visit|%>
<%= visit.date %> <%= visit.date %>
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/screen.css
Expand Up @@ -76,6 +76,10 @@ p{
padding:5px 10px; padding:5px 10px;
} }


p.closed{
color:red;
}

section.page{ section.page{
padding: 5px; padding: 5px;
background-color:#DBE3E3; background-color:#DBE3E3;
Expand Down

0 comments on commit af0b570

Please sign in to comment.