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>
|
</td>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<td class="<%= cl %>">
|
<td class="<%= cl %> comment">
|
||||||
<% if changeset.tags['comment'] %>
|
<% if changeset.tags['comment'] %>
|
||||||
<%= h(changeset.tags['comment']) %>
|
<%= h(changeset.tags['comment']) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
<h1>Recent Changes</h1>
|
<h1>Recent Changes</h1>
|
||||||
<p>Recently edited changesets:</p>
|
<p>Recently edited changesets:</p>
|
||||||
|
|
||||||
<table id="keyvalue" cellpadding="3">
|
<%= render :partial => 'changesets' %>
|
||||||
<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>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
|
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 %>
|
<% else %>
|
||||||
|
|
||||||
<%= render :partial => 'changeset_paging_nav' %>
|
<%= render :partial => 'changeset_paging_nav' %>
|
||||||
|
<%= render :partial => 'changesets' %>
|
||||||
<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 => 'changeset_paging_nav' %>
|
<%= render :partial => 'changeset_paging_nav' %>
|
||||||
|
|
||||||
<p>For all changes everywhere see <%= link_to("Recent Changes", :controller => "browse", :action => "changesets") %> </p>
|
<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>
|
<p><b>No visible edits by <%= h(@display_name) %>.</b></p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= render :partial => 'changeset_paging_nav' %>
|
<%= render :partial => 'changeset_paging_nav' %>
|
||||||
<table id="keyvalue" cellpadding="3">
|
<%= render :partial => 'changesets', :locals => {:showusername => false} %>
|
||||||
<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 => 'changeset_paging_nav' %>
|
<%= render :partial => 'changeset_paging_nav' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue