contactorama/app/views/layouts/application.html.erb
2012-04-18 23:30:00 +02:00

69 lines
1.9 KiB
Text

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Contact-o-Rama - <%= yield(:title) %></title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>
</head>
<body>
<%# The new test header. %>
<div class="header">
<div class="container">
<div class="row">
<div class="threecol header_home"><span class="logo_contact">Contact</span><span class="logo_o-rama">-o-Rama</span></div>
<div class="fourcol header_menu">
<%= link_to 'Home', root_path %>
<%= link_to 'A..Z', contacts_path %>
<%= link_to 'Birthdays', birthdays_path %>
<%= link_to 'New', new_contact_path %>
</div>
<div class="onecol header_search">
<%= form_tag("/search", :method => "get") do %>
<%= text_field_tag(:q, nil, :placeholder => "Search…") %>
<% end %>
</div>
<div class="fourcol last header_user">
<% if current_user.nil? %>
&nbsp;
<% else %>
<%= current_user.email %>
(<%= link_to '|', destroy_user_session_path %>)
<% end %>
</div>
</div>
</div>
</div>
<br /><br /><br />
<div class="container">
<% unless flash.empty? %>
<div class="row">
<div class="fourcol">&nbsp;</div>
<div class="fourcol flash">
<%# examples: flash[:error] (:notice, ...), needs: respective css 'id' elements %>
<% flash.each do | key, msg | %>
<%= content_tag(:p, msg, :id => key) if flash[key] %>
<% end %>
</div>
<div class="fourcol">&nbsp;</div>
</div>
<% end %>
<%= yield %>
<%# Footer %>
<div class="row">
<div class="twelvecol" id="footer">
<span class="copyright">&copy; 2012 <a href="http://tailorama.com/">Tailorama</a></span>
&middot;
<span class="imprint"><a href="http://tailorama.de/impressum/">imprint</a></span>
</div>
</div>
</div> <%# end container %>
</body>
</html>