/post_versions: reorganize layout, add thumbnails.
* Add thumbnails to /post_versions (when viewing history of a single post, thumbnail is above table rather than in every table row). * Combine user, date, and ip address columns into one column. * Remove rating and parent columns (rating and parent changes are already listed in the tags column).
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
<div id="c-post-versions">
|
||||
<div id="a-index">
|
||||
<h1>Changes</h1>
|
||||
<% if post_version_listing == :revert %>
|
||||
<h1>Tag History: <%= link_to "Post ##{params.dig(:search, :post_id)}", @post_versions[0].post %></h1>
|
||||
<%= PostPresenter.preview(@post_versions[0].post, show_deleted: true) %>
|
||||
<% else %>
|
||||
<h1>Tag History</h1>
|
||||
<% end %>
|
||||
|
||||
<p>Recent updates may not have been processed yet. The most recently processed version was <%= time_ago_in_words_tagged(PostArchive.maximum(:updated_at)) %>.</p>
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
<p class="fineprint">Recent updates may not have been processed yet. The most recently processed version was <%= time_ago_in_words_tagged(PostArchive.maximum(:updated_at)) %>.</p>
|
||||
|
||||
<% if @post_versions.length == 0 %>
|
||||
<%= render "post_sets/blank" %>
|
||||
|
||||
Reference in New Issue
Block a user