secret
Created

application layout

  • Download Gist
application.html.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 
<title><%= full_title(yield(:title)) %></title>
 
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "vendor/modernizr" %>
<%= csrf_meta_tags %>
</head>
 
<body>
 
<% if signed_in? %>
<%= render 'layouts/top-nav' %>
<% else %>
<%= render 'layouts/top-bar' %>
<% end %>
 
<div class="row">
 
<% if signed_in? %>
<nav class="large-4 columns">
<%= render 'layouts/sidenav' %>
</nav>
 
<div class="large-20 columns">
<% unless @page_header == "Query" %>
<% flash.each do |key, value| %>
<div data-alert class="alert-box cbc-<%= key %>">
<%= value %>
<a href="#" class="close">&times;</a>
</div>
<% end %>
<% end %>
<%= yield %>
</div>
 
<% else %>
 
<%= yield %>
 
<% end %>
 
</div>
 
<%= javascript_include_tag "application" %>
 
<%#= debug(params) if Rails.env.development? %>
 
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.