contactorama/app/views/layouts/application.html.erb
2012-01-11 23:00:26 +01:00

66 lines
2 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 "reset.css", :media => "screen, projection" %>
<%= stylesheet_link_tag "1140" %>
<!--[if lte IE 9]>
<%= stylesheet_link_tag "ie.css" %>
<![endif]-->
<%= stylesheet_link_tag "layout" %>
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
</head>
<body>
<div class="container">
<%# The header. %>
<div class="row header">
<div class="threecol"><span class="logo_contact">Contact</span><span class="logo_o-rama">-o-Rama</span></div>
<div class="threecol">
<%= form_tag("/search", :method => "get") do %>
<%= text_field_tag(:q, nil, :placeholder => "Vorname / Nachname") %>
<%= submit_tag("Search") %>
<% end %>
</div>
<div class="onecol header_actions"><%= link_to "Geb", birthdays_path %></div>
<div class="onecol header_actions"><%= link_to "Neu", new_contact_path %></div>
<div class="threecol omega header_email">
<% if current_user.nil? %>
&nbsp;
<% else %>
<%= current_user.email %>
(<%= link_to t('sessions.actions.logout'), destroy_user_session_path %>)
<% end %>
</div>
</div> <%# row %>
<% 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>