add navigation and flash messages
This commit is contained in:
parent
bc9b23b865
commit
0e90cc937b
3
app/views/layouts/_flashmessages.html.haml
Normal file
3
app/views/layouts/_flashmessages.html.haml
Normal file
@ -0,0 +1,3 @@
|
||||
- flash.each do |key, value|
|
||||
%div{class: "alert alert-#{key}"}
|
||||
= value
|
||||
@ -8,7 +8,13 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<%= yield %>
|
||||
<header>
|
||||
<%= render "layouts/navigation_links" %>
|
||||
</header>
|
||||
|
||||
<%= render "layouts/flashmessages" %>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user