Add 'diary_entry.no_such_entry.title' for diary entries that don't exist
This commit is contained in:
parent
85d04b1088
commit
be57524849
2 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,7 @@ class DiaryEntryController < ApplicationController
|
|||
if @entry
|
||||
@title = t 'diary_entry.view.title', :user => params[:display_name]
|
||||
else
|
||||
@title = t 'diary_entry.no_such_entry.title', :id => params[:id]
|
||||
render :action => 'no_such_entry', :status => :not_found
|
||||
end
|
||||
else
|
||||
|
|
|
@ -275,6 +275,7 @@ en:
|
|||
login: "Login"
|
||||
save_button: "Save"
|
||||
no_such_entry:
|
||||
title: "No such diary entry"
|
||||
heading: "No entry with the id: {{id}}"
|
||||
body: "Sorry, there is no diary entry or comment with the id {{id}}. Please check your spelling, or maybe the link you clicked is wrong."
|
||||
no_such_user:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue