Added Django 1.4 compatibility by using future urlnames.

This commit is contained in:
Martin Mahner 2013-11-26 11:08:36 +01:00
parent 0f76cb944c
commit e9ef15454d
7 changed files with 15 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{% extends "dpaste/base.html" %}
{% load i18n %}
{% load url from future %}
{% block title %}About dpaste.de{% endblock %}
{% block headline %}About dpaste.de{% endblock %}

View file

@ -1,4 +1,8 @@
{% load i18n staticfiles %}<!DOCTYPE html>
{% load i18n %}
{% load staticfiles %}
{% load url from future %}
<!DOCTYPE html>
<html>
<head>
<title>dpaste.de: {% block title %}{% trans "New snippet" %}{% endblock %}</title>

View file

@ -1,7 +1,9 @@
{% extends "dpaste/base.html" %}
{% load mptt_tags %}
{% load i18n %}
{% load dpaste_tags %}
{% load url from future %}
{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}
{% block headline %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}

View file

@ -1,4 +1,5 @@
{% load i18n %}
{% load url from future %}
<h4>
{% blocktrans with fileA.get_absolute_url as filea_url and fileB.get_absolute_url as fileb_url and fileA.id as filea_id and fileB.id as fileb_id %}

View file

@ -1,4 +1,5 @@
{% load i18n %}
{% load url from future %}
<form method="post" action="" class="form-horizontal">
{% csrf_token %}
@ -41,4 +42,4 @@
{% endif %}
<input tabindex="0" type="submit"class="btn btn-primary" value="{% trans "Paste it" %}">
</div>
</form>
</form>

View file

@ -1,6 +1,7 @@
{% extends "dpaste/base.html" %}
{% load i18n %}
{% load url from future %}
{% load dpaste_tags %}
{% block title %}Snippet History{% endblock %}

View file

@ -1,5 +1,7 @@
{% extends "dpaste/base.html" %}
{% load i18n %}
{% load url from future %}
{% block title %}{% trans "New snippet" %}{% endblock %}
{% block headline %}{% trans "New snippet" %}{% endblock %}
@ -7,4 +9,4 @@
{% block page %}
{% include "dpaste/snippet_form.html" %}
{% endblock %}
{% endblock %}