]> 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 1984f686c6a1e1a877bdc20f401ef16529290d58..5a93608759491672941a9079df042a0cbf78d3ab 100644 (file)
         </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>
     </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 -%>