]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.html.erb
Add an HTML version of the message notification email
[rails.git] / app / views / layouts / site.html.erb
index 44329edb5c622e72e9516b86b80d35a260fe6aac..9e602b193628afb9753357654bf1c64c073fc847 100644 (file)
@@ -63,7 +63,6 @@
     </script>
 
     <div id="left">
-
       <div id="logo">
         <center>
           <h1><%= t 'layouts.project_name.h1' %></h1>
         </div>
       </center>
     </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);
+    });
+    </script>
+
     <% if defined?(PIWIK_LOCATION) and defined?(PIWIK_SITE) -%>
     <%= render :partial => "layouts/piwik" %>
     <% end -%>