application.html.erb 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title><%= full_title(yield(:title)) %></title>
  5. <%= csrf_meta_tags %>
  6. <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
  7. <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  8. <%= render 'layouts/shim' %>
  9. </head>
  10. <body>
  11. <div id="wrapper">
  12. <%= render 'layouts/navigation' if logged_in? %>
  13. <!-- Page Content -->
  14. <div id="<%= 'page-wrapper' if logged_in? %>">
  15. <div class="container-fluid">
  16. <div class="row">
  17. <div class="col-lg-12">
  18. <% flash.each do |message_type, message| %>
  19. <div class="alert alert-<%= message_type %>"><%= message %></div>
  20. <% end %>
  21. <%= yield %>
  22. <%= debug(params) if Rails.env.development? %>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <%= render 'layouts/footer' if logged_in? %>
  28. </div>
  29. </body>
  30. </html>