From: Tom Hughes Date: Sat, 17 Mar 2012 16:19:52 +0000 (+0000) Subject: Don't display Markdown help when editing an old diary entry X-Git-Tag: live~5715 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d0980087d1fafb872a9d6ce215fd75f26d88da20 Don't display Markdown help when editing an old diary entry --- diff --git a/app/views/diary_entry/edit.html.erb b/app/views/diary_entry/edit.html.erb index da409e61a..6b4d9c177 100644 --- a/app/views/diary_entry/edit.html.erb +++ b/app/views/diary_entry/edit.html.erb @@ -10,7 +10,7 @@ <%= t 'diary_entry.edit.body' -%> - <%= richtext_area :diary_entry, :body, :cols => 80 %> + <%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %> <%= t 'diary_entry.edit.language' -%> diff --git a/app/views/site/_html_help.erb b/app/views/site/_html_help.erb new file mode 100644 index 000000000..e69de29bb