From 5e2070b6673d7e86a5c7599c7d3cd73c60604b50 Mon Sep 17 00:00:00 2001 From: Guillaume Bouffard Date: Thu, 13 Aug 2015 17:47:59 +0100 Subject: [PATCH] updated flash message display --- app/views/layouts/application.html.erb | 6 +++++- app/views/restaurants/index.html.erb | 6 +++--- coverage/.resultset.json | 2 +- public/css/yelp.css | 20 ++++++++++++++++++++ 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 3ecf9f3..dbfe6ea 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -29,7 +29,11 @@ <% end %> - <%= notice %> + <% if !notice.nil? %> +
+ <%= notice %> +
+ <% end %> <%= yield %> diff --git a/app/views/restaurants/index.html.erb b/app/views/restaurants/index.html.erb index 961198a..b11c313 100644 --- a/app/views/restaurants/index.html.erb +++ b/app/views/restaurants/index.html.erb @@ -18,17 +18,17 @@ <%= link_to "Review #{restaurant.name}", new_restaurant_review_path(restaurant), class: 'owner_buttons' %> <%end%>
-

Reviews for <%= restaurant.name %>

+

Reviews for <%= restaurant.name %>:

<% if restaurant.reviews.any? %>