Ticket #9439: fix-templates.diff

File fix-templates.diff, 2.2 KB (added by neithere, 16 years ago)

Replace non-existent permalink attribute with get_absolute_url

  • django/contrib/comments/templates/comments/approve.

    diff -u django/contrib/comments/templates/comments/approve.orig.html django/contrib/comments/templates/comments/approve.html
    old new  
    99  <form action="." method="post">
    1010    <input type="hidden" name="next" value="{{ next }}" id="next" />
    1111    <p class="submit">
    12       <input type="submit" name="submit" value="{% trans "Approve" %}" /> or <a href="{{ comment.permalink }}">cancel</a>
     12      <input type="submit" name="submit" value="{% trans "Approve" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
    1313    </p>
    1414  </form>
    1515{% endblock %}
  • django/contrib/comments/templates/comments/delete.

    diff -u django/contrib/comments/templates/comments/delete.orig.html django/contrib/comments/templates/comments/delete.orig.html
    old new  
    1111    <input type="hidden" name="next" value="{{ next }}" id="next" />
    1212    {% endif %}
    1313    <p class="submit">
    14     <input type="submit" name="submit" value="{% trans "Remove" %}" /> or <a href="{{ comment.permalink }}">cancel</a>
     14    <input type="submit" name="submit" value="{% trans "Remove" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
    1515    </p>
    1616  </form>
    1717{% endblock %}
  • django/contrib/comments/templates/comments/flag.

    diff -u django/contrib/comments/templates/comments/flag.orig.html django/contrib/comments/templates/comments/flag.orig.html
    old new  
    99  <form action="." method="post">
    1010    <input type="hidden" name="next" value="{{ next }}" id="next" />
    1111    <p class="submit">
    12     <input type="submit" name="submit" value="{% trans "Flag" %}" /> or <a href="{{ comment.permalink }}">cancel</a>
     12    <input type="submit" name="submit" value="{% trans "Flag" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
    1313    </p>
    1414  </form>
    1515{% endblock %}
Back to Top