]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.html.erb
Move a chunk of non-markup ruby code from a view to the controller
[rails.git] / app / views / layouts / site.html.erb
index 2c6752ab9d76f5e16d948bf4f6359227d928a428..5a93608759491672941a9079df042a0cbf78d3ab 100644 (file)
@@ -66,7 +66,7 @@
       <%= yield :optionals %>
 
       <% unless @user %>
-      <div class="sidebar-copy">
+      <div class="sidebar-copy intro">
         <p>
           <%= t 'layouts.intro_1' %>
         </p>
         </ul>
       </div>
 
+      <div id="sotm">
+        <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm2012'), :title => t('layouts.sotm2012'), :border => "0"), "http://stateofthemap.org/register-now/" %>
+      </div>
+
       <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>
       </div>
       <div class='sidebar-copy'>
-          <p><%= t 'layouts.partners_html',
+          <p class='deemphasize'><%= t 'layouts.partners_html',
               :ucl => link_to(t('layouts.partners_ucl'), "http://www.vr.ucl.ac.uk"),
               :ic => link_to(t('layouts.partners_ic'), "http://www.imperial.ac.uk/"),
               :bytemark => link_to(t('layouts.partners_bytemark'), "http://www.bytemark.co.uk"),
       </div>
     </div>
 
-    <script type="text/javascript">
-    $(document).ready(function () {
-      var auth_token = $("meta[name=csrf-token]").attr("content");
-      $("form input[name=authenticity_token]").val(auth_token);
-
-      $("textarea").autoGrow();
-    });
-    </script>
-
     <% if defined?(PIWIK_LOCATION) and defined?(PIWIK_SITE) -%>
     <%= render :partial => "layouts/piwik" %>
     <% end -%>