Removing last hard-wirred.

This commit is contained in:
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>
<%= link_to(if ENV['LOGO'] then image_tag(ENV['LOGO']) else (ENV['TITLE'] || "Photos") end, root_path) %>
</h1>
<form action="/albums" method="get" id="search">
<% 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>