]> git.openstreetmap.org Git - rails.git/commitdiff
De-duplicate some of the changeset stuff out to a new partial view.
authorThomas Wood <grand.edgemaster@gmail.com>
Thu, 7 May 2009 22:48:14 +0000 (22:48 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Thu, 7 May 2009 22:48:14 +0000 (22:48 +0000)
Add css hooks for upcoming fix for #1734

app/views/changeset/_changeset.rhtml
app/views/changeset/list.rhtml
app/views/changeset/list_bbox.rhtml
app/views/changeset/list_user.rhtml

index 4012c41a3aa209e3afeca476da6f7749363a3b9e..c5b3c7a88bb9ca9407445ccff00c3711987e67d0 100644 (file)
@@ -21,7 +21,7 @@
     </td>
   <% end %>
     
-  <td class="<%= cl %>">
+  <td class="<%= cl %> comment">
     <% if changeset.tags['comment'] %>
       <%= h(changeset.tags['comment']) %>
     <% else %>
index aa745743a1fc53b5ef1dc2ae55ebc9a055860b22..b78469ddfc8b2ab7cf4080fbd5765949071c1c94 100644 (file)
@@ -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.
index e1cf9aedb36b87f7883467fd3f7586b702b1dae7..34644e960b471ae55075c48578bd5d3acf5ff360 100644 (file)
@@ -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>
index 386423a565fb8804a27e8abaca10324801ca9126..cf99d7a48fafaa46d7648c4508b3100447166240 100644 (file)
@@ -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 %>