Add a title to note browse pages
authorTom Hughes <tom@compton.nu>
Mon, 20 May 2013 16:46:43 +0000 (17:46 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 20 May 2013 16:46:43 +0000 (17:46 +0100)
app/controllers/browse_controller.rb
config/locales/en.yml

index 5526aacca05df6de55bb8c7087662dcaea829db2..622bcadd5da137cfa648d91dee03ed9c9c5ccadd 100644 (file)
@@ -80,6 +80,7 @@ class BrowseController < ApplicationController
   def note
     @type = "note"
     @note = Note.find(params[:id])
+    @title = "#{I18n.t('browse.note.title')} | #{@note.id}"
     @next = Note.find(:first, :order => "id ASC", :conditions => [ "status != 'hidden' AND id > :id", { :id => @note.id }] )
     @prev = Note.find(:first, :order => "id DESC", :conditions => [ "status != 'hidden' AND id < :id", { :id => @note.id }] )
   rescue ActiveRecord::RecordNotFound
index 6f26567edb9db0122d9838cf2e32d64524432954..507d226bbbee7957ceeb17edd44ba3b1140b685c 100644 (file)
@@ -289,6 +289,7 @@ en:
       view_history: "View history"
       edit: "Edit way"
     note:
+      title: "Note"
       open_title: "Unresolved note: %{note_name}"
       closed_title: "Resolved note: %{note_name}"
       opened: "Opened:"