bookstore/app/views/layouts/application.html.erb

30 lines
816 B
Text
Raw Normal View History

2021-03-19 17:31:38 +02:00
<!DOCTYPE html>
<html>
<head>
<title>Book store</title>
<meta name='viewport' content='width=device-width,initial-scale=1'>
2021-03-19 17:31:38 +02:00
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= link_to 'Home', '/welcome', method: :get%>
2021-03-21 20:30:25 +01:00
<%= link_to 'Books', '/books', method: :get%>
2021-03-21 17:02:04 +01:00
<% flash.each do |type, notice| %>
<div class='card-panel teal lighten-5'>
2021-03-21 17:02:04 +01:00
<% if notice.is_a? String %>
<%= notice %>
<% else %>
<% notice.each do |msg| %>
<div><%= msg %></div>
<% end %>
<% end %>
</div>
<% end %>
2021-03-19 17:31:38 +02:00
<%= yield %>
</body>
</html>