69 lines
1.9 KiB
Text
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? %>
|
|
|
|
<% 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"> </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"> </div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
|
|
<%# Footer %>
|
|
<div class="row">
|
|
<div class="twelvecol" id="footer">
|
|
<span class="copyright">© 2012 <a href="http://tailorama.com/">Tailorama</a></span>
|
|
·
|
|
<span class="imprint"><a href="http://tailorama.de/impressum/">imprint</a></span>
|
|
</div>
|
|
</div>
|
|
</div> <%# end container %>
|
|
</body>
|
|
</html>
|