mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +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" %}
|
{% extends "dpaste/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load url from future %}
|
||||||
|
|
||||||
{% block title %}About dpaste.de{% endblock %}
|
{% block title %}About dpaste.de{% endblock %}
|
||||||
{% block headline %}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>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>dpaste.de: {% block title %}{% trans "New snippet" %}{% endblock %}</title>
|
<title>dpaste.de: {% block title %}{% trans "New snippet" %}{% endblock %}</title>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{% extends "dpaste/base.html" %}
|
{% extends "dpaste/base.html" %}
|
||||||
|
|
||||||
{% load mptt_tags %}
|
{% load mptt_tags %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load dpaste_tags %}
|
{% load dpaste_tags %}
|
||||||
|
{% load url from future %}
|
||||||
|
|
||||||
{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}
|
{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}
|
||||||
{% block headline %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}
|
{% block headline %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load url from future %}
|
||||||
|
|
||||||
<h4>
|
<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 %}
|
{% 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 i18n %}
|
||||||
|
{% load url from future %}
|
||||||
|
|
||||||
<form method="post" action="" class="form-horizontal">
|
<form method="post" action="" class="form-horizontal">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
@ -41,4 +42,4 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input tabindex="0" type="submit"class="btn btn-primary" value="{% trans "Paste it" %}">
|
<input tabindex="0" type="submit"class="btn btn-primary" value="{% trans "Paste it" %}">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "dpaste/base.html" %}
|
{% extends "dpaste/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load url from future %}
|
||||||
{% load dpaste_tags %}
|
{% load dpaste_tags %}
|
||||||
|
|
||||||
{% block title %}Snippet History{% endblock %}
|
{% block title %}Snippet History{% endblock %}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{% extends "dpaste/base.html" %}
|
{% extends "dpaste/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load url from future %}
|
||||||
|
|
||||||
{% block title %}{% trans "New snippet" %}{% endblock %}
|
{% block title %}{% trans "New snippet" %}{% endblock %}
|
||||||
{% block headline %}{% trans "New snippet" %}{% endblock %}
|
{% block headline %}{% trans "New snippet" %}{% endblock %}
|
||||||
|
@ -7,4 +9,4 @@
|
||||||
|
|
||||||
{% block page %}
|
{% block page %}
|
||||||
{% include "dpaste/snippet_form.html" %}
|
{% include "dpaste/snippet_form.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue