]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_changeset_details.rhtml
Eliminate duplication of tag printing logic.
[rails.git] / app / views / browse / _changeset_details.rhtml
index 07f076e21e13bdb15695d23392fc08e90ea5bf88..baeb44508763dbb1a76a77ed3e2bdbe4cec084e2 100644 (file)
     </tr>
   <% end %>
   
-  <% unless changeset_details.tags_as_hash.empty? %>
-    <tr valign="top">
-      <th>Tags:</th>
-      <td>
-        <table padding="0">
-          <%= render :partial => "tag", :collection => changeset_details.tags_as_hash %>
-        </table>
-      </td>
-    </tr>
-  <% else %>
-    <tr>
-      <th>Tags</th>
-      <td>There are no tags for this changeset</td>
-    </tr>
-  <% end %>
+  <%= render :partial => "tag_details", :object => changeset_details %>
 
   <tr>
     <th>Bounding box:</th>