photomix/app/views/layouts/application.html.erb
2010-04-13 23:56:13 -04:00

54 lines
1.1 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%= ENV['site_name'] %></title>
<%= yield :head %>
<%= stylesheet_link_tag 'application' %>
</head>
<body>
<div id="container">
<div id="header">
<%= breadcrumbs %>
<div id="action_links">
<%= yield :action_links %>
<% if current_user %>
Logged in as <%= current_user.name %>
<%= link_to 'Logout', logout_path %>
<% else %>
<%= link_to 'Login', login_path %>
<% end %>
</div>
<h1>
<% if ENV['LOGO'] %>
<%= image_tag ENV['LOGO'] %>
<% else %>
<%= ENV['TITLE'] %>
<% end %>
</h1>
<form action="/albums" method="get" id="search">
<input type="text" name="q" class="textfie.d"/>
<input type="submit" value="Search" class="button" />
</form>
<hr class="seperator" />
</div>
<div id="content">
<p id="notice"><%= flash[:notice] %></p>
<%= yield %>
</div>
<div id="footer">
<hr class="seperator" />
&copy; <a href="http://balderapp.com">Balder</a>.
</div>
</div>
<%= javascript_include_tag 'jquery-1.3.2.js', 'jquery.livequery.js', 'balder' %>
<%= yield :javascript %>
</body>
</html>