]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.html.erb
Wait for dom:loaded to fire before initialising the map
[rails.git] / app / views / layouts / site.html.erb
index 368e3fc20648953323c491520ff88ed0fcde12a1..0c39cf74b37c2be80c7815e5af292970873d5b99 100644 (file)
@@ -6,7 +6,7 @@
       <%= link_to(image_tag("osm_logo.png", :size => "16x16", :border => 0, :alt => t('layouts.logo.alt_text')), :controller => 'site', :action => 'index') %>
       <h1><%= t 'layouts.project_name.h1' %></h1>
     </div>
-    <div id="content">
+    <div id="content" class="<%= params[:controller] %>_<%= params[:action] %>">
       <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
 
       <%= yield %>
@@ -75,6 +75,8 @@
         </center>
       </div>
 
+      <%= yield :optionals %>
+
       <% unless @user %>
       <div id="intro">
         <p>
@@ -85,7 +87,8 @@
         </p>
         <p>
         <%= t 'layouts.intro_3', 
-              :ucl => link_to(t('layouts.intro_3_ucl'), "http://www.vr.ucl.ac.uk"), 
+              :ucl => link_to(t('layouts.intro_3_ucl'), "http://www.vr.ucl.ac.uk"),
+              :ic => link_to(t('layouts.intro_3_ic'), "http://www.imperial.ac.uk/"),
               :bytemark => link_to(t('layouts.intro_3_bytemark'), "http://www.bytemark.co.uk"),
               :partners => link_to(t('layouts.intro_3_partners'), t('layouts.intro_3_partners_url')) %>
         </p>
         <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm2011'), :title => t('layouts.sotm2011'), :border => "0"), "http://stateofthemap.org/register-now/" %>
       </div>
 
-      <%= yield :optionals %>
-
       <center>
         <div class="donate">
           <a href="http://donate.openstreetmap.org/" title="<%= h(t('layouts.make_a_donation.title')) %>"><%= h(t('layouts.make_a_donation.text')) %></a>