application.html.erb 765 Bytes
Newer Older
Sara Kuqi's avatar
fc  
Sara Kuqi committed
1
2
3
4
<!DOCTYPE html>
<html>
  <head>
    <%= csrf_meta_tags %>
ira.maier's avatar
ira.maier committed
5
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
pei-chi.huang's avatar
pei-chi.huang committed
6
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
Sara Kuqi's avatar
fc  
Sara Kuqi committed
7
8
    <%= render 'layouts/shim' %>
  </head>
9
10
  <body>
    <%= render 'layouts/header' %>
11
     <div class="container-fluid text-center" style="margin-bottom: 1.5rem">
12
13
14
          <% flash.each do |message_type, message| %>
          <%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
          <% end %>
15
16

         <%# show this on every page: %>
17
          <%= yield %>
Sara Kuqi's avatar
fc  
Sara Kuqi committed
18
     </div>
19
    </div>
20
21
    <%# todo don't hide page content under footer %>
     <%#= render 'layouts/footer' %>
22
23
24
   </div>
  </body>
 </html>