]> git.openstreetmap.org Git - rails.git/commitdiff
Improve page title for diary entries. Closes #2702.
authorTom Hughes <tom@compton.nu>
Mon, 8 Feb 2010 18:15:51 +0000 (18:15 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 8 Feb 2010 18:15:51 +0000 (18:15 +0000)
app/controllers/diary_entry_controller.rb
config/locales/en.yml

index 735c51dcd95931c57197e801d8afe2f2554f6122..6c7c9658bd6cd73d508b14bc80ee7256fc9fb1ca 100644 (file)
@@ -166,7 +166,7 @@ class DiaryEntryController < ApplicationController
                                  :visible => true
                                })
       if @entry
-        @title = t 'diary_entry.view.title', :user => params[:display_name]
+        @title = t 'diary_entry.view.title', :user => params[:display_name], :title => @entry.title
       else
         @title = t 'diary_entry.no_such_entry.title', :id => params[:id]
         render :action => 'no_such_entry', :status => :not_found
index 962551b41cade06a61f818483ffef9df4526e20b..7c8a159ee1915d3a8ec7f6bae454fefdc4b44b9a 100644 (file)
@@ -313,7 +313,7 @@ en:
       save_button: "Save"
       marker_text: Diary entry location
     view:
-      title: "Users' diaries | {{user}}"
+      title: "{{user}}'s diary | {{title}}"
       user_title: "{{user}}'s diary"
       leave_a_comment: "Leave a comment"
       login_to_leave_a_comment: "{{login_link}} to leave a comment"