- Diff view changes -- Only show pool description changes in diff view -- Conditionally render diff link when applicable values are changed -- Conditionally show diff view sections when values are changed - Show renames on index view -- There is plenty of space -- This wasn't shown at all for wikis -- Having to navigate to an alternate page is unwieldy for pools - Show "posts" as a status on pools -- This is so all changes among versions are quantified as a status - Standardize diff/index titles
21 lines
962 B
Plaintext
21 lines
962 B
Plaintext
<% page_title "Pool Comparison: #{@pool_version.pretty_name}" %>
|
|
<%= render "secondary_links" %>
|
|
|
|
<div id="c-pool-versions">
|
|
<div id="a-diff">
|
|
<h1>Pool Version Comparison: <%= link_to @pool_version.pretty_name, pool_versions_path(search: { pool_id: @pool_version.pool_id }, anchor: "pool-version-#{@pool_version.id}"), class: "pool-category-#{@pool_version.pool.category}" %></h1>
|
|
|
|
<% if @other_version.present? %>
|
|
<p>Showing differences between <%= compact_time @pool_version.updated_at %> (<%= link_to_user @pool_version.updater %>) and <%= compact_time @other_version.updated_at %> (<%= link_to_user @other_version.updater %>)</p>
|
|
|
|
<% if @pool_version.description != @other_version.description %>
|
|
<div class="diff-body">
|
|
<%= diff_body_html(@pool_version, @other_version, :description) %>
|
|
</div>
|
|
<% else %>
|
|
<p><em>No changes to description.</em></p>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|