From 0e90cc937ba41b1945ea165aba55d8fee11a6840 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Fri, 2 Jan 2015 03:13:01 -0800 Subject: [PATCH] add navigation and flash messages --- app/views/layouts/_flashmessages.html.haml | 3 +++ app/views/layouts/application.html.erb | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 app/views/layouts/_flashmessages.html.haml diff --git a/app/views/layouts/_flashmessages.html.haml b/app/views/layouts/_flashmessages.html.haml new file mode 100644 index 00000000..092dc473 --- /dev/null +++ b/app/views/layouts/_flashmessages.html.haml @@ -0,0 +1,3 @@ +- flash.each do |key, value| + %div{class: "alert alert-#{key}"} + = value diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ce8eafb9..cf98df07 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,7 +8,13 @@ -<%= yield %> +
+ <%= render "layouts/navigation_links" %> +
+ + <%= render "layouts/flashmessages" %> + + <%= yield %>