<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>
-<td>
- <div style="width: 250px; margin: auto; text-align: right"">
- <% if map.instance_of? Changeset or map.visible %>
- <div id="small_map" style="width:250px; height: 300px; border: solid 1px black">
- </div>
- <span id="loading"><%= t 'browse.map.loading' %></span>
- <a id="area_larger_map" href=""></a>
- <% unless map.instance_of? Changeset %>
- <br />
- <a id="object_larger_map" href=""></a>
- <% end %>
- <% else %>
- <%= t 'browse.map.deleted' %>
- <% end %>
+<div id="browse_map">
+ <% if map.instance_of? Changeset or map.visible %>
+ <div id="small_map">
</div>
-</td>
+ <span id="loading"><%= t 'browse.map.loading' %></span>
+ <a id="area_larger_map" href=""></a>
+ <% unless map.instance_of? Changeset %>
+ <br />
+ <a id="object_larger_map" href=""></a>
+ <% end %>
+ <% else %>
+ <%= t 'browse.map.deleted' %>
+ <% end %>
+</div>
<% if map.instance_of? Changeset or map.visible %>
<script type="text/javascript">
OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
-<div style="float:right; text-align:center; width: 100%;">
+<% margin = @next_by_user || @prev_by_user ? 9 : 18 %>
+<div id="browse_navigation" style="margin-top: <%= margin %>px">
<% if @next_by_user or @prev_by_user %>
<span class="nowrap">
<% if @prev_by_user %>
-<table width="100%">
- <tr>
- <td>
- <h2><%= t 'browse.changeset.changeset', :id => @changeset.id %></h2>
- </td>
- <td>
- <%= render :partial => "navigation" %>
- </td>
- </tr>
- <tr valign="top">
- <td>
- <%= render :partial => "changeset_details", :object => @changeset %>
- <hr />
- <%= t 'browse.changeset.download', :changeset_xml_link => link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read"),
- :osmchange_xml_link => link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %>
- </td>
- <% if @changeset.has_valid_bbox? %>
- <%= render :partial => "map", :object => @changeset %>
- <% end %>
- </tr>
-</table>
+<%= render :partial => "navigation" %>
+<h2><%= t 'browse.changeset.changeset', :id => @changeset.id %></h2>
+<% if @changeset.has_valid_bbox? %>
+<%= render :partial => "map", :object => @changeset %>
+<% end %>
+<%= render :partial => "changeset_details", :object => @changeset %>
+<hr />
+<%= t 'browse.changeset.download', :changeset_xml_link => link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read"),
+ :osmchange_xml_link => link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %>
@name = printable_name @node
@title = t('browse.node.node') + ' | ' + @name
%>
-<table width="100%">
- <tr>
- <td>
- <h2><%= t'browse.node.node_title', :node_name => h(@name) %></h2>
- </td>
- <td>
- <%= render :partial => "navigation" %>
- </td>
- </tr>
- <tr valign="top">
- <td>
- <%= render :partial => "node_details", :object => @node %>
- <hr />
- <%= t'browse.node.download', :download_xml_link => link_to(t('browse.node.download_xml'), :controller => "node", :action => "read"),
- :view_history_link => link_to(t('browse.node.view_history'), :action => "node_history"),
- :edit_link => link_to(t('browse.node.edit'), :controller => "site", :action => "edit", :lat => @node.lat, :lon => @node.lon, :zoom => 18, :node => @node.id)
- %>
- </td>
- <%= render :partial => "map", :object => @node %>
- </tr>
-</table>
+<%= render :partial => "navigation" %>
+<h2><%= t'browse.node.node_title', :node_name => h(@name) %></h2>
+<%= render :partial => "map", :object => @node %>
+<%= render :partial => "node_details", :object => @node %>
+<hr />
+<%= t'browse.node.download', :download_xml_link => link_to(t('browse.node.download_xml'), :controller => "node", :action => "read"),
+ :view_history_link => link_to(t('browse.node.view_history'), :action => "node_history"),
+ :edit_link => link_to(t('browse.node.edit'), :controller => "site", :action => "edit", :lat => @node.lat, :lon => @node.lon, :zoom => 18, :node => @node.id)
+%>
@title = t('browse.node_history.node_history') + ' | ' + @name
%>
<h2><%= t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
-
-<table width="100%">
- <tr valign="top">
- <td>
- <% @node.old_nodes.reverse.each do |node| %>
- <%= render :partial => "node_details", :object => node %>
- <hr />
- <% end %>
- <%= t 'browse.node_history.download', :download_xml_link => link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history"),
- :view_details_link => link_to(t('browse.node_history.view_details'), :action => "node") %>
- </td>
- <%= render :partial => "map", :object => @node %>
- </tr>
-</table>
+<%= render :partial => "map", :object => @node %>
+<% @node.old_nodes.reverse.each do |node| %>
+ <%= render :partial => "node_details", :object => node %>
+ <hr />
+<% end %>
+<%= t 'browse.node_history.download', :download_xml_link => link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history"),
+ :view_details_link => link_to(t('browse.node_history.view_details'), :action => "node") %>
@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>
+<%= render :partial => "navigation" %>
+<h2><%= t'browse.relation.relation_title', :relation_name => h(@name) %></h2>
+<%= render :partial => "map", :object => @relation %>
+<%= 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") %>
@title = t('browse.relation_history.relation_history') + ' | ' + @name
%>
<h2><%= t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %></h2>
-
-<table width="100%">
- <tr valign="top">
- <td>
- <% @relation.old_relations.reverse.each do |relation| %>
- <%= render :partial => "relation_details", :object => relation %>
- <hr />
- <% end %>
- <%= t'browse.relation_history.download', :download_xml_link => link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history"),
- :view_details_link => link_to(t('browse.relation_history.view_details'), :action => "relation") %>
- </td>
- <%= render :partial => "map", :object => @relation %>
- </tr>
-</table>
+<%= render :partial => "map", :object => @relation %>
+<% @relation.old_relations.reverse.each do |relation| %>
+ <%= render :partial => "relation_details", :object => relation %>
+ <hr />
+<% end %>
+<%= t'browse.relation_history.download', :download_xml_link => link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history"),
+ :view_details_link => link_to(t('browse.relation_history.view_details'), :action => "relation") %>
@name = printable_name @way
@title = t('browse.way.way') + ' | ' + @name
%>
-<table width="100%">
- <tr>
- <td>
- <h2><%= t'browse.way.way_title', :way_name => h(@name) %></h2>
- </td>
- <td>
- <%= render :partial => "navigation" %>
- </td>
- </tr>
- <tr valign="top">
- <td>
- <%= render :partial => "way_details", :object => @way %>
- <hr />
- <%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
- | <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
- <% unless @midnode.nil? %>
- | <%= link_to(t('browse.way.edit'), :controller => "site", :action => "edit", :way => @way.id, :lat => @midnode.lat, :lon => @midnode.lon, :zoom => 16) %>
- <% end %>
- </td>
- <%= render :partial => "map", :object => @way %>
- </tr>
-</table>
+<%= render :partial => "navigation" %>
+<h2><%= t'browse.way.way_title', :way_name => h(@name) %></h2>
+<%= render :partial => "map", :object => @way %>
+<%= render :partial => "way_details", :object => @way %>
+<hr />
+<%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
+| <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
+<% unless @midnode.nil? %>
+ | <%= link_to(t('browse.way.edit'), :controller => "site", :action => "edit", :way => @way.id, :lat => @midnode.lat, :lon => @midnode.lon, :zoom => 16) %>
+<% end %>
@title = t('browse.way_history.way_history') + ' | ' + @name
%>
<h2><%= t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %></h2>
-
-<table width="100%">
- <tr valign="top">
- <td>
- <% @way.old_ways.reverse.each do |way| %>
- <%= render :partial => "way_details", :object => way %>
- <hr />
- <% end %>
- <%= t'browse.way_history.download', :download_xml_link => link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history"),
- :view_details_link => link_to(t('browse.way_history.view_details'), :action => "way") %>
- </td>
- <%= render :partial => "map", :object => @way %>
- </tr>
-</table>
+<%= render :partial => "map", :object => @way %>
+<% @way.old_ways.reverse.each do |way| %>
+ <%= render :partial => "way_details", :object => way %>
+ <hr />
+<% end %>
+<%= t'browse.way_history.download', :download_xml_link => link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history"),
+ :view_details_link => link_to(t('browse.way_history.view_details'), :action => "way") %>
font-weight: bold;
}
+/* Rules for the data browser */
+
+#browse_navigation {
+ float: right;
+ width: 250px;
+ text-align: center;
+ margin-left: 10px;
+}
+
+#browse_map {
+ float: right;
+ width: 250px;
+ text-align: right;
+ margin-left: 10px;
+}
+
+#browse_map #small_map {
+ width: 250px;
+ height: 300px;
+ border: solid 1px black;
+}
+
/* Rules for the trace list shown by the traces tab etc */
#trace_list {