mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue