]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/header.html
OSQA-662. Send the CSRF token with the AJAX post requests.
[osqa.git] / forum / skins / default / templates / header.html
index f853916af9955aa0b833a245269ce87684c93f63..0e3a73f7d0805b9ef9fc76770bf9fa60e9670149 100644 (file)
@@ -25,6 +25,7 @@
   
        <div id="searchBar">
     <form action="{% url search %}" method="get">
+        {% csrf_token %}
         <div>
             <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" />
             <input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />
@@ -40,7 +41,7 @@
 
        {% if settings.USE_ANNOUNCEMENT_BAR|or_preview:request %}
   <div id="announcement">
-      {{ settings.ANNOUNCEMENT_BAR|or_preview:request|safe }}
+      {{ settings.ANNOUNCEMENT_BAR|or_preview:request|static_content:settings.ANNOUNCEMENT_BAR_RENDER_MODE }}
   </div>
   {% endif %}