/notes, /note_versions: link directly to note within post.
Also adds a "»" link, linking to the note's history.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Note Changes</h1>
|
<h1>Note Changes</h1>
|
||||||
|
|
||||||
<table width="100%" class="striped">
|
<table width="100%" class="striped autofit">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
@@ -25,8 +25,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><%= link_to note_version.post_id, post_path(note_version.post_id) %></td>
|
<td><%= link_to note_version.post_id, post_path(note_version.post_id) %></td>
|
||||||
<td><%= link_to "#{note_version.note_id}.#{note_version.version}", note_versions_path(:search => {:note_id => note_version.note_id}) %></td>
|
|
||||||
<td>
|
<td>
|
||||||
|
<%= 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}) %>
|
||||||
|
</td>
|
||||||
|
<td class="col-expand">
|
||||||
<%= h(note_version.body) %>
|
<%= h(note_version.body) %>
|
||||||
<% unless note_version.is_active? %>
|
<% unless note_version.is_active? %>
|
||||||
<span class="inactive">(deleted)</span>
|
<span class="inactive">(deleted)</span>
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Notes</h1>
|
<h1>Notes</h1>
|
||||||
|
|
||||||
<table width="100%" class="striped">
|
<table width="100%" class="striped autofit">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Post</th>
|
<th>Post</th>
|
||||||
|
<th>Note</th>
|
||||||
<th>Created by</th>
|
<th>Created by</th>
|
||||||
<th>Created at</th>
|
<th>Created at</th>
|
||||||
<th>Body</th>
|
<th>Body</th>
|
||||||
@@ -15,9 +16,13 @@
|
|||||||
<% @notes.each do |note| %>
|
<% @notes.each do |note| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= link_to note.post_id, post_path(note.post_id) %></td>
|
<td><%= link_to note.post_id, post_path(note.post_id) %></td>
|
||||||
|
<td>
|
||||||
|
<%= 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}) %>
|
||||||
|
</td>
|
||||||
<td><%= link_to_user note.creator %></td>
|
<td><%= link_to_user note.creator %></td>
|
||||||
<td><%= compact_time(note.created_at) %></td>
|
<td><%= compact_time(note.created_at) %></td>
|
||||||
<td>
|
<td class="col-expand">
|
||||||
<%= h(note.body) %>
|
<%= h(note.body) %>
|
||||||
<% unless note.is_active? %>
|
<% unless note.is_active? %>
|
||||||
<span class="inactive">(deleted)</span>
|
<span class="inactive">(deleted)</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user