mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-19 00:09:21 +11:00
Added Django 1.4 compatibility by using future urlnames.
This commit is contained in:
parent
0f76cb944c
commit
e9ef15454d
7 changed files with 15 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% extends "dpaste/base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load url from future %}
|
||||
{% load dpaste_tags %}
|
||||
|
||||
{% block title %}Snippet History{% endblock %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue