-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from alexanderkustov/master
Allow Rails 5 and current paper_trail version
- Loading branch information
Showing
2 changed files
with
26 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
<h1>Changes</h1> | ||
|
||
<p class='changes_feed'><%= link_to 'Changes feed', changes_path(:format => 'atom') %></p> | ||
|
||
<p> | ||
Show: | ||
<%= ([link_to('All', changes_path)] + change_item_types.map { |type| link_to(type.pluralize, changes_path(:type => type)) }).join(' | ').html_safe %> | ||
</p> | ||
|
||
<table class='changes_table'> | ||
<tfoot> | ||
<tr> | ||
<td colspan='2'> | ||
<%= paginate @versions %> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<thead> | ||
<tr class='changes_header'> | ||
<th class='change_time'>Time</th> | ||
<th class='change_details'>Attribute with previous and current values</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% if @versions.any? %> | ||
<% @versions.each do |version| %> | ||
<% next unless change_show_allowed?(version) %> | ||
<%= render :partial => 'version', :object => version %> | ||
<div class="table-responsive"> | ||
<table class='changes_table table table-bordered'> | ||
<tfoot> | ||
<tr> | ||
<td colspan='2'> | ||
<%= paginate @versions %> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<thead> | ||
<tr class='changes_header'> | ||
<th class='change_time'>Time</th> | ||
<th class='change_details'>Attribute with previous and current values</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% if @versions.any? %> | ||
<% @versions.each do |version| %> | ||
<% next unless change_show_allowed?(version) %> | ||
<%= render :partial => 'version', :object => version %> | ||
<% end %> | ||
<% else %> | ||
<td rowspan='2'> — No changes found — </td> | ||
<% end %> | ||
<% else %> | ||
<td rowspan='2'> — No changes found — </td> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters