From 4773973bfe1eae5cde53bb89e70a44ce99ee354b Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 21 Apr 2014 18:33:52 -0700 Subject: [PATCH] flash messages for dashboard, remove welcome after 5 changes --- views/dashboard.erb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/views/dashboard.erb b/views/dashboard.erb index 8279bcad..b8d741fa 100644 --- a/views/dashboard.erb +++ b/views/dashboard.erb @@ -54,17 +54,30 @@
+<% unless current_site.changed_count > 5 %>
-
+

Hello! Welcome to your new site.

To get started, click on the index.html file below to edit it. It's your home page! You can add more files (such as images) from your computer by dragging them into the box below. Need help building web sites? Check out these tutorials!
+<% end %> <% if @error %>

<%= @error %>

<% end %> + + <% if flash.keys.length > 0 %> +
+

+ <% flash.keys.each do |key| %> + <%= flash[key] %> + <% end %> +

+
+ <% end %> +