|
<%= link_to note_version.post_id, post_path(note_version.post_id) %> |
- <%= link_to "#{note_version.note_id}.#{note_version.version}", note_versions_path(:search => {:note_id => note_version.note_id}) %> |
+ <%= link_to "#{note_version.note_id}.#{note_version.version}", post_path(note_version.post_id, anchor: "note-#{note_version.note_id}") %>
+ <%= link_to "»", note_versions_path(search: {note_id: note_version.note_id}) %>
+ |
+
<%= h(note_version.body) %>
<% unless note_version.is_active? %>
(deleted)
diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb
index c588ca160..a9140c815 100644
--- a/app/views/notes/index.html.erb
+++ b/app/views/notes/index.html.erb
@@ -2,10 +2,11 @@
Notes
-
+
| Post |
+ Note |
Created by |
Created at |
Body |
@@ -15,9 +16,13 @@
<% @notes.each do |note| %>
| <%= link_to note.post_id, post_path(note.post_id) %> |
+
+ <%= link_to "#{note.id}.#{note.version}", post_path(note.post_id, anchor: "note-#{note.id}") %>
+ <%= link_to "»", note_versions_path(search: {note_id: note.id}) %>
+ |
<%= link_to_user note.creator %> |
<%= compact_time(note.created_at) %> |
-
+ |
<%= h(note.body) %>
<% unless note.is_active? %>
(deleted)
| |