Skip to content

Instantly share code, notes, and snippets.

@joshukraine
Created December 11, 2013 13:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joshukraine/ed17d9101cba605f8cd9 to your computer and use it in GitHub Desktop.
application layout
<!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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment