Permalink
Browse files

Added a few fixes for page titles.

  • Loading branch information...
1 parent 3bec2a0 commit 5e76b3d9f0da909a45c3dabd294844ca8fa3369b @toddmazierski toddmazierski committed May 20, 2012
Showing with 8 additions and 1 deletion.
  1. +2 −0 app/views/home/index.html.erb
  2. +4 −0 app/views/marc_fields/show.html.erb
  3. +2 −1 app/views/posters/index.html.erb
@@ -1,3 +1,5 @@
+<% content_for :title, 'Home' %>
+
<div id="home">
<p>Welcome to the Buffalo &amp; Erie County Public Library's World War I Poster Collection. The library has held posession of these posters for over 80 years.</p>
<p>During World War I, the impact of the poster as a means of communication was greater than at any other time during history. The ability of posters to inspire, inform, and persuade combined with vibrant design trends in many of the participating countries to produce thousands of interesting visual works.</p>
@@ -1,3 +1,7 @@
+<% title = 'Topics' if current_page?(topics_path) %>
+<% title = 'Places' if current_page?(places_path) %>
+<% content_for :title, title %>
+
<div id="access-points">
<ul>
<% @access_points.sort_by(&:entry).each do |access_point| %>
@@ -1,4 +1,5 @@
-<% content_for :title, @query %>
+<% title = @query.blank? ? 'Posters' : @query %>
+<% content_for :title, title %>
<div class="list">
<h3><%= (page_entries_info @posters).html_safe %></h3>

0 comments on commit 5e76b3d

Please sign in to comment.