]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/relation.html.erb
Rename views to rails 2 style names.
[rails.git] / app / views / browse / relation.html.erb
diff --git a/app/views/browse/relation.html.erb b/app/views/browse/relation.html.erb
new file mode 100644 (file)
index 0000000..e180da0
--- /dev/null
@@ -0,0 +1,23 @@
+<%
+@name = printable_name @relation
+@title = t('browse.relation.relation') + ' | ' + @name
+%>
+<table width="100%">
+  <tr>
+    <td>
+      <h2><%= t'browse.relation.relation_title', :relation_name => h(@name) %></h2>
+    </td>
+    <td>
+      <%= render :partial => "navigation" %>
+    </td>
+  </tr>
+  <tr valign="top">
+    <td>
+      <%= render :partial => "relation_details", :object => @relation %>
+      <hr />
+      <%= t'browse.relation.download', :download_xml_link => link_to(t('browse.relation.download_xml'), :controller => "relation", :action => "read"),
+                                       :view_history_link => link_to(t('browse.relation.view_history'), :action => "relation_history") %>
+    </td>
+    <%= render :partial => "map", :object => @relation %>
+  </tr>
+</table>