From 7a435df917edbad034db908b7a00d14d31b7396b Mon Sep 17 00:00:00 2001 From: Aaron Lidman Date: Tue, 12 Nov 2013 10:09:46 -0800 Subject: [PATCH] Moved note description to the sidebar header --- app/views/browse/note.html.erb | 5 +++-- config/locales/en.yml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 7f863fef4..f6db9f154 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -2,12 +2,13 @@

- <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %> + <%= h(@note.comments.first.body.to_html) %>

-

<%= h(@note.comments.first.body.to_html) %>

+ <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %> +
<%= note_event('open', @note.created_at, @note.author) %> <% if @note.status == "closed" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 1e3da2ad7..0253a7f21 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -283,8 +283,8 @@ en: note: title: "Note" new_note: "Add a note" - open_title: "Unresolved note: %{note_name}" - closed_title: "Resolved note: %{note_name}" + open_title: "Unresolved note #%{note_name}" + closed_title: "Resolved note #%{note_name}" opened: "Opened" last_modified: "Last modified" closed: "Closed" -- 2.43.2