or
<%= link_to "view history", :action => "way_history" %>
</td>
- <td align="right">
- <% if @way.visible %>
- <%= render :partial => "map", :locals => { :type => "way", :id => @way.id } %>
- <% else %>
- Deleted
- <% end %>
- </td>
+ <%= render :partial => "map", :object => @way %>
</tr>
</table>