Mercurial > public > sg101
view gpp/templates/weblinks/navigation.html @ 238:a3b47d0f4df1
Exempt the Paypal IPN view from CSRF protection for #91.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 12 Sep 2010 04:04:42 +0000 |
parents | 6a5549c2efb5 |
children | 7e8d2dda99e3 |
line wrap: on
line source
<div class="app-logo"> <img src="{{ MEDIA_URL }}icons/weblinks-logo.jpg" alt="Links Logo" title="Links" /> </div> <div class="weblinks-search"> <form action="{% url weblinks-search page=1 %}" method="post">{% csrf_token %} <p>{{ search_form.text }} <input type="submit" value="Search" /></p> </form> </div> <ul class="app-menu"> <li><a href="{% url weblinks.views.link_index %}">Categories</a></li> <li><a href="{% url weblinks.views.new_links %}">New</a></li> <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li> {% if user.is_authenticated %} <li><a href="{% url weblinks.views.add_link %}">Add Link</a></li> {% endif %} </ul> <center> <form action="{% url weblinks.views.random_link %}" method="post">{% csrf_token %} <input type="submit" value="Visit a Random Link" /> </form> </center>