]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/relation.rhtml
Fix a few typos
[rails.git] / app / views / browse / relation.rhtml
index 8d4f94bf5a040f470aa8f4fdfe41a025db693974..89f826c17ed53b1dddca4b98b0199a29e836404e 100644 (file)
@@ -1,3 +1,7 @@
+<%
+@name = printable_name @relation
+@title = 'Relation | ' + @name
+%>
 <table width="100%">
   <tr>
     <td>
       or
       <%= link_to "view history", :action => "relation_history" %>
     </td>
-    <td align="right">
-      <% if @relation.visible %>
-        <%= render :partial => "map", :locals => { :type => "relation", :id => @relation.id } %>
-      <% else %>
-        Deleted
-      <% end %>
-    </td>
+    <%= render :partial => "map", :object => @relation %>
   </tr>
 </table>