Fogbugz #87: use individualised titles for each page.

This commit is contained in:
Roland 2011-10-03 22:53:40 +02:00
parent 96e449a11d
commit 76dd233fa1
5 changed files with 16 additions and 3 deletions

View file

@ -1,2 +1,5 @@
module ApplicationHelper
def title(page_title)
content_for(:title) { page_title }
end
end

View file

@ -1,3 +1,4 @@
<% title t("titles.contacts.index") %>
<% @contacts.each do |c| %>
<div class="row contact_summary">

View file

@ -1,3 +1,4 @@
<% title t("titles.contacts.new") %>
<div class="row">
<div class="twelvecol">
<div align="center">

View file

@ -9,6 +9,9 @@ de:
sessions:
actions:
logout: "out"
logout: "logout"
titles:
contacts:
index: "Übersicht"
new: "Neuer Kontakt"

View file

@ -12,4 +12,9 @@ en:
sessions:
actions:
logout: "out"
logout: "logout"
titles:
contacts:
index: "Overview"
new: "New Contact"