Don't display Markdown help when editing an old diary entry
authorTom Hughes <tom@compton.nu>
Sat, 17 Mar 2012 16:19:52 +0000 (16:19 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 17 Mar 2012 16:37:22 +0000 (16:37 +0000)
app/views/diary_entry/edit.html.erb
app/views/site/_html_help.erb [new file with mode: 0644]

index da409e61a0d40494b586641f1b26bf4fb11d4a99..6b4d9c177935f9d665df20a7685ea198629dafd2 100644 (file)
@@ -10,7 +10,7 @@
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.body' -%></td>
-      <td><%= richtext_area :diary_entry, :body, :cols => 80 %></td>
+      <td><%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %></td>
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.language' -%></td>
diff --git a/app/views/site/_html_help.erb b/app/views/site/_html_help.erb
new file mode 100644 (file)
index 0000000..e69de29