photomix/app/views/layouts/application.html.erb
Alexander Negoda e59d11e1c9 big update
2012-07-25 01:26:16 +04:00

43 lines
900 B
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<%= render :partial => 'shared/head' %>
</head>
<body>
<div id="container">
<div id="header">
<div id="action_links">
<%= yield :action_links %>
<% if current_user %>
Logged in as <%= current_user.name %>
<%= link_to 'Logout', logout_path %>
<% end %>
</div>
<h1>
<%= link_to(if ENV['LOGO'] then image_tag(ENV['LOGO']) else (ENV['TITLE'] || "Photos") end, root_path) %>
</h1>
<%= form_tag albums_path, { :id => :search } do -%>
<input type="text" name="q" class="textfield"/>
<input type="submit" value="Search" class="button" />
<% end -%>
<hr class="seperator" />
<%= breadcrumbs %>
</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 - open source photo gallery</a>.
</div>
</div>
</body>
</html>