De-duplicate some of the changeset stuff out to a new partial view.
Add css hooks for upcoming fix for #1734
This commit is contained in:
parent
98a76339b8
commit
d6b36b5752
4 changed files with 4 additions and 35 deletions
|
@ -21,7 +21,7 @@
|
|||
</td>
|
||||
<% end %>
|
||||
|
||||
<td class="<%= cl %>">
|
||||
<td class="<%= cl %> comment">
|
||||
<% if changeset.tags['comment'] %>
|
||||
<%= h(changeset.tags['comment']) %>
|
||||
<% else %>
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
<h1>Recent Changes</h1>
|
||||
<p>Recently edited changesets:</p>
|
||||
|
||||
<table id="keyvalue" cellpadding="3">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Saved at</th>
|
||||
<th>User</th>
|
||||
<th>Comment</th>
|
||||
<th>Area</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<%= render :partial => 'changeset', :locals => {:showusername => true}, :collection => @edits unless @edits.nil? %>
|
||||
</table>
|
||||
<%= render :partial => 'changesets' %>
|
||||
|
||||
<p>
|
||||
For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
|
||||
|
|
|
@ -18,19 +18,7 @@ Changesets within the area:
|
|||
<% else %>
|
||||
|
||||
<%= render :partial => 'changeset_paging_nav' %>
|
||||
|
||||
<table id="keyvalue" cellpadding="3">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Saved at</th>
|
||||
<th>User</th>
|
||||
<th>Comment</th>
|
||||
<th>Area</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<%= render :partial => 'changeset', :locals => {:showusername => true}, :collection => @edits unless @edits.nil? %>
|
||||
</table>
|
||||
|
||||
<%= render :partial => 'changesets' %>
|
||||
<%= render :partial => 'changeset_paging_nav' %>
|
||||
|
||||
<p>For all changes everywhere see <%= link_to("Recent Changes", :controller => "browse", :action => "changesets") %> </p>
|
||||
|
|
|
@ -4,16 +4,7 @@
|
|||
<p><b>No visible edits by <%= h(@display_name) %>.</b></p>
|
||||
<% else %>
|
||||
<%= render :partial => 'changeset_paging_nav' %>
|
||||
<table id="keyvalue" cellpadding="3">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Saved at</th>
|
||||
<th>Comment</th>
|
||||
<th>Area</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<%= render :partial => 'changeset', :locals => {:showusername => false}, :collection => @edits %>
|
||||
</table>
|
||||
<%= render :partial => 'changesets', :locals => {:showusername => false} %>
|
||||
<%= render :partial => 'changeset_paging_nav' %>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue