From e47080338ac97d1c8a15840a2b92a2a335291060 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 20 May 2013 17:46:43 +0100 Subject: [PATCH] Add a title to note browse pages --- app/controllers/browse_controller.rb | 1 + config/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 5526aacca..622bcadd5 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index 6f26567ed..507d226bb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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:" -- 2.43.2