2009-06-11 13:05:09 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2009-05-22 14:13:46 +02:00
|
|
|
<head>
|
2009-06-11 13:05:09 +02:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2010-10-11 16:03:34 +02:00
|
|
|
<title><%= ENV['TITLE'] || "Photos" %></title>
|
2011-09-25 07:12:26 +02:00
|
|
|
<meta name="viewport" content="width=device-width">
|
|
|
|
<meta name="viewport" content="initial-scale=1.0">
|
2009-05-25 21:39:43 +02:00
|
|
|
<%= yield :head %>
|
|
|
|
<%= stylesheet_link_tag 'application' %>
|
2010-10-11 17:47:50 +02:00
|
|
|
<%= csrf_meta_tag %>
|
2009-05-22 14:13:46 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2009-06-11 13:05:09 +02:00
|
|
|
<div id="container">
|
|
|
|
|
|
|
|
<div id="header">
|
2009-06-30 21:24:06 +02:00
|
|
|
<div id="action_links">
|
2009-06-16 21:43:03 +02:00
|
|
|
<%= yield :action_links %>
|
2009-06-30 21:24:06 +02:00
|
|
|
<% if current_user %>
|
|
|
|
Logged in as <%= current_user.name %>
|
|
|
|
<%= link_to 'Logout', logout_path %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2009-08-10 16:22:06 +02:00
|
|
|
<h1>
|
2010-11-21 15:34:59 +01:00
|
|
|
<%= link_to(if ENV['LOGO'] then image_tag(ENV['LOGO']) else (ENV['TITLE'] || "Photos") end, root_path) %>
|
|
|
|
</h1>
|
2011-04-11 11:20:32 +02:00
|
|
|
<%= form_tag albums_path, { :id => :search } do -%>
|
2010-07-01 12:14:23 +02:00
|
|
|
<input type="text" name="q" class="textfield"/>
|
2009-06-16 13:37:15 +02:00
|
|
|
<input type="submit" value="Search" class="button" />
|
2010-11-21 15:34:59 +01:00
|
|
|
<% end -%>
|
2009-06-11 13:05:09 +02:00
|
|
|
<hr class="seperator" />
|
2010-07-01 12:14:23 +02:00
|
|
|
<%= breadcrumbs %>
|
2009-06-11 13:05:09 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
2009-06-16 21:43:03 +02:00
|
|
|
<p id="notice"><%= flash[:notice] %></p>
|
2009-06-11 13:05:09 +02:00
|
|
|
<%= yield %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="footer">
|
|
|
|
|
|
|
|
<hr class="seperator" />
|
2010-10-14 22:48:21 +02:00
|
|
|
© <a href="http://balderapp.com">Balder - open source photo gallery</a>.
|
2009-06-11 13:05:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2009-05-22 14:13:46 +02:00
|
|
|
|
2010-10-11 17:47:50 +02:00
|
|
|
<%= javascript_include_tag 'jquery-1.4.2.js', 'rails', 'balder' %>
|
2009-05-25 21:39:43 +02:00
|
|
|
<%= yield :javascript %>
|
2009-05-22 14:13:46 +02:00
|
|
|
</body>
|
|
|
|
</html>
|