<% unless @user %>
<div id="intro">
- OpenStreetMap is a free editable map of the whole world. It is made by people like you.
- <p/>
- OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth.
- <p/>
- OpenStreetMap's hosting is kindly supported by the <a href="http://www.vr.ucl.ac.uk">UCL VR Centre</a> and <a href="http://www.bytemark.co.uk">bytemark</a>.
+ <p>OpenStreetMap is a free editable map of the whole world. It is made by people like you.</p>
+ <p>OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth.</p>
+ <p>
+ OpenStreetMap's hosting is kindly supported by the <a href="http://www.vr.ucl.ac.uk">UCL VR Centre</a> and <a href="http://www.bytemark.co.uk">bytemark</a>.
+ </p>
</div>
<% end %>
else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; }
else { var imgname = 'keymapnik13.png'; }
- updateSidebar("Map key", "<p><img src='images/"+imgname+"' /></p>");
+ updateSidebar("Map key", "<p><img src='images/"+imgname+"' /><\/p>");
openSidebar({ width: "210px" });
}
<script type="text/javascript">
<!--
function startSearch() {
- updateSidebar("Search Results", "<p class='search_results_entry'>Searching...</p>");
+ updateSidebar("Search Results", "<p class='search_results_entry'>Searching...<\/p>");
$("search_field").style.display = "none";
$("search_active").style.display = "inline";
<span class="oboxheader">Search</span>
<span class="whereami"><a href="javascript:describeLocation()">Where am I?</a></span>
<div class="search_form">
- <span id="search_field">
+ <div id="search_field">
<% form_remote_tag(:loading => "startSearch()",
:complete => "endSearch()",
:url => { :controller => :geocoder, :action => :search }) do %>
<%= text_field_tag :query, h(params[:query]) %>
<%= submit_tag "Go" %>
<% end %>
- </span>
+ </div>
<p id="search_active">Searching...</p>
</div>
<p class="search_help">
</div>
<div id="attribution">
-<table width="100%">
-<tr>
-<td align="left">http://creativecommons.org/licenses/by-sa/2.0/</td>
-<td align="right">http://openstreetmap.org/</td>
-</tr>
-<tr>
-<td colspan="2" align="center">
-Licensed under the Creative Commons Attribution-Share Alike 2.0 license
-by the OpenStreetMap project and its contributors.
-</td>
-</table>
+ <table width="100%">
+ <tr>
+ <td align="left">http://creativecommons.org/licenses/by-sa/2.0/</td>
+ <td align="right">http://openstreetmap.org/</td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center">Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors.</td>
+ </tr>
+ </table>
</div>
<% if params['mlon'] and params['mlat'] %>
adapter: mysql
database: osm_test
username: root
- password:
+ password: root
host: localhost
production:
config.action_view.cache_template_extensions = false
# Don't care if the mailer can't send
-config.action_mailer.raise_delivery_errors = false
\ No newline at end of file
+config.action_mailer.raise_delivery_errors = false
+
+ENV['RAILS_ASSET_ID'] = '' # http://wiki.openstreetmap.org/wiki/The_Rails_Port
\ No newline at end of file
gem 'libxml-ruby', '>= 0.8.3'
require 'libxml'
-LibXML::XML::Parser.register_error_handler do |message|
- raise message
-end
+LibXML::XML::Parser.register_error_handler(proc{})