Ensure homepage source validates.

This commit is contained in:
Paul Gillard 2009-02-10 22:42:45 +00:00
parent 53d30d70af
commit 3f30bc53f5
7 changed files with 23 additions and 25 deletions

View file

@ -68,11 +68,11 @@
<% 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 %>

View file

@ -11,7 +11,7 @@
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" });
}

View file

@ -1,7 +1,7 @@
<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";
@ -34,14 +34,14 @@
<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">

View file

@ -21,17 +21,15 @@
</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'] %>

View file

@ -24,7 +24,7 @@ test:
adapter: mysql
database: osm_test
username: root
password:
password: root
host: localhost
production:

View file

@ -15,4 +15,6 @@ config.action_controller.perform_caching = false
config.action_view.cache_template_extensions = false
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mailer.raise_delivery_errors = false
ENV['RAILS_ASSET_ID'] = '' # http://wiki.openstreetmap.org/wiki/The_Rails_Port

View file

@ -2,6 +2,4 @@ require 'rubygems'
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{})