Removing last hard-wirred.

master
Rémi Vanicat 2010-11-21 15:34:59 +01:00
parent c5d215b914
commit de0842d203
2 changed files with 5 additions and 11 deletions

View File

@ -6,7 +6,7 @@ module ApplicationHelper
levels.delete_at(0)
#links = "You are here: "
links = content_tag('a', "HOME", :href => "/") if include_home
links = content_tag('a', "HOME", :href => root_path ) if include_home
nocrumb = ["collections", "albums", "photos", "tags", "new", "edit", "tags"]

View File

@ -20,18 +20,12 @@
<% end %>
</div>
<h1>
<a href="/">
<% if ENV['LOGO'] %>
<%= image_tag ENV['LOGO'] %>
<% else %>
<%= ENV['TITLE'] || "Photos" %>
<% end %>
</a>
</h1>
<form action="/albums" method="get" id="search">
<%= 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" />
</form>
<% end -%>
<hr class="seperator" />
<%= breadcrumbs %>
</div>