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) levels.delete_at(0)
#links = "You are here: " #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"] nocrumb = ["collections", "albums", "photos", "tags", "new", "edit", "tags"]

View file

@ -20,18 +20,12 @@
<% end %> <% end %>
</div> </div>
<h1> <h1>
<a href="/"> <%= link_to(if ENV['LOGO'] then image_tag(ENV['LOGO']) else (ENV['TITLE'] || "Photos") end, root_path) %>
<% if ENV['LOGO'] %> </h1>
<%= image_tag ENV['LOGO'] %> <% form_tag albums_path, { :id => :search } do -%>
<% else %>
<%= ENV['TITLE'] || "Photos" %>
<% end %>
</a>
</h1>
<form action="/albums" method="get" id="search">
<input type="text" name="q" class="textfield"/> <input type="text" name="q" class="textfield"/>
<input type="submit" value="Search" class="button" /> <input type="submit" value="Search" class="button" />
</form> <% end -%>
<hr class="seperator" /> <hr class="seperator" />
<%= breadcrumbs %> <%= breadcrumbs %>
</div> </div>