diff gpp/templates/donations/index.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 4ec8d1d0ccbd
children 3c48a555298d
line wrap: on
line diff
--- a/gpp/templates/donations/index.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/donations/index.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'base.html' %}
+{% load url from future %}
 {% block title %}Donations{% endblock %}
 {% block content %}
 <h2>Donations</h2>
@@ -11,7 +12,7 @@
 <p>
 We are currently using Paypal to receive donations. You don't have to be a Paypal member to donate;
 major credit cards are also accepted. If you really don't do Paypal, please 
-<a href="{% url contact-form %}">contact me</a> and we can work something else out.
+<a href="{% url 'contact-form' %}">contact me</a> and we can work something else out.
 </p>
 <p>Thank you for donating to SurfGuitar101.com!</p>
 <div class="span-9 append-1">
@@ -33,7 +34,7 @@
          {{ anonymous }}
       {% else %}
          {% if donation.user %}
-            <a href="{% url bio-view_profile donation.user.username %}">{{ donation.user.username }}</a>
+            <a href="{% url 'bio-view_profile' donation.user.username %}">{{ donation.user.username }}</a>
          {% else %}
             {{ donation.donor }}
          {% endif %}
@@ -71,7 +72,7 @@
          <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" />
          <label for="name_yes">Yes, list me as {{ user.username }}</label></li>
    {% else %}
-   <p>You are not currently logged in. Please <a href="{% url accounts-login %}">log in</a>
+   <p>You are not currently logged in. Please <a href="{% url 'accounts-login' %}">log in</a>
    if you would like your site username listed with your donation. Otherwise you can have your 
    actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.</p>
       <ul class="icon-list">
@@ -84,14 +85,14 @@
    <input type="hidden" name="cmd" value="_donations" />
    <input type="hidden" name="business" value="{{ business }}" />
    <input type="hidden" name="charset" value="utf-8" />
-   <input type="hidden" name="return" value="http://{{ domain }}{% url donations-thanks %}" />
+   <input type="hidden" name="return" value="http://{{ domain }}{% url 'donations-thanks' %}" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="hidden" name="item_name" value="{{ item_name }}" />
    <input type="hidden" name="rm" value="1" />
    <input type="hidden" name="no_note" value="0" />
    <input type="hidden" name="cn" value="Do you have any comments for {{ domain }}?" />
    <input type="hidden" name="no_shipping" value="1" />
-   <input type="hidden" name="cancel_return" value="http://{{ domain }}{% url donations-index %}" />
+   <input type="hidden" name="cancel_return" value="http://{{ domain }}{% url 'donations-index' %}" />
 
 
    <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1"