-
-
Save joshukraine/ed17d9101cba605f8cd9 to your computer and use it in GitHub Desktop.
application layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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">×</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