From 3bb77aad08a5558125b1cc80a599135d0e68eeda Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 1 Aug 2013 11:48:37 +0200 Subject: [PATCH] Django 1.5 --- apps/archive/templates/archive/base.html | 18 +++++++++--------- .../templates/archive/file_managed.html | 14 +++++++------- apps/archive/templates/archive/file_new.html | 2 +- .../templates/archive/file_unmanaged.html | 2 +- apps/archive/templates/archive/list_new.html | 2 +- .../templates/archive/list_published.html | 2 +- .../templates/archive/list_publishing.html | 2 +- .../templates/archive/list_unmanaged.html | 2 +- .../templates/archive/list_unpublished.html | 2 +- apps/archive/urls.py | 5 +++-- audiobooks/settings.py | 6 ++++++ audiobooks/urls.py | 5 +++-- requirements.txt | 6 ++++-- 13 files changed, 39 insertions(+), 29 deletions(-) diff --git a/apps/archive/templates/archive/base.html b/apps/archive/templates/archive/base.html index 575cf8e..8ec34e9 100644 --- a/apps/archive/templates/archive/base.html +++ b/apps/archive/templates/archive/base.html @@ -2,21 +2,21 @@ {% load i18n %} {% block repo-zones-nav %} - {% trans "New" %} - {% trans "Unpublished" %} - {% trans "Publishing" %} - {% trans "Published" %} - {% trans "Archive" %} + {% trans "New" %} + {% trans "Unpublished" %} + {% trans "Publishing" %} + {% trans "Published" %} + {% trans "Archive" %} {% if user.is_staff %} - {% trans "Projects" %} + {% trans "Projects" %} {% endif %} {% if user.is_authenticated %} - {% trans "Logout" %} + {% trans "Logout" %} {% else %} - {% trans "Login" %} + {% trans "Login" %} {% endif %} {% if user.is_staff %} - {% trans "Administration" %} + {% trans "Administration" %} {% endif %} {% if user.is_authenticated %} {{ user }} diff --git a/apps/archive/templates/archive/file_managed.html b/apps/archive/templates/archive/file_managed.html index 58f45ef..8917243 100755 --- a/apps/archive/templates/archive/file_managed.html +++ b/apps/archive/templates/archive/file_managed.html @@ -4,7 +4,7 @@ {% block content %} -

Plik źródłowy: {{ path }} +

Plik źródłowy: {{ path }} (sha1: {{ audiobook.source_sha1 }}).

@@ -14,7 +14,7 @@

{% trans "Publishing pending" %}

-
+ {% csrf_token %}
@@ -46,13 +46,13 @@ {% tags_table audiobook.new_publish_tags 0 %} -
+ {% csrf_token %}
{% if not audiobook.mp3_published or not audiobook.ogg_published %} -
+ {% csrf_token %}
@@ -65,7 +65,7 @@
{% if audiobook.mp3_file %}

{% trans "MP3 file" %}

-

{% trans "Download MP3 file." %}

+

{% trans "Download MP3 file." %}

{% if audiobook.mp3_published %}

{% trans "Published:" %} {{ audiobook.mp3_published }}

{% if audiobook.mp3_published_tags.tags %} @@ -81,7 +81,7 @@
{% if audiobook.ogg_file %}

{% trans "Ogg Vorbis file" %}

-

{% trans "Download Ogg Vorbis file." %}

+

{% trans "Download Ogg Vorbis file." %}

{% if audiobook.ogg_published %}

{% trans "Published:" %} {{ audiobook.ogg_published }}

{% if audiobook.ogg_published_tags.tags %} @@ -124,7 +124,7 @@ Last modified: {{ audiobook.modified }} -
{% csrf_token %} diff --git a/apps/archive/templates/archive/file_new.html b/apps/archive/templates/archive/file_new.html index 466c576..acc161d 100644 --- a/apps/archive/templates/archive/file_new.html +++ b/apps/archive/templates/archive/file_new.html @@ -3,7 +3,7 @@ {% block content %} - + {% csrf_token %}
diff --git a/apps/archive/templates/archive/file_unmanaged.html b/apps/archive/templates/archive/file_unmanaged.html index addd28e..89f79ba 100755 --- a/apps/archive/templates/archive/file_unmanaged.html +++ b/apps/archive/templates/archive/file_unmanaged.html @@ -23,7 +23,7 @@ -
+ {% csrf_token %}
diff --git a/apps/archive/templates/archive/list_new.html b/apps/archive/templates/archive/list_new.html index 459593b..fabf446 100644 --- a/apps/archive/templates/archive/list_new.html +++ b/apps/archive/templates/archive/list_new.html @@ -16,7 +16,7 @@ {% block file-list %} {% for file in objects %}
  • - {{ file }} + {{ file }}
  • {% endfor %} {% endblock %} diff --git a/apps/archive/templates/archive/list_published.html b/apps/archive/templates/archive/list_published.html index 6bbec9b..5e61ba1 100755 --- a/apps/archive/templates/archive/list_published.html +++ b/apps/archive/templates/archive/list_published.html @@ -14,7 +14,7 @@ {% block file-list %} {% for file in objects %}
  • - {{ file }} + {{ file }}
  • {% endfor %} {% endblock %} diff --git a/apps/archive/templates/archive/list_publishing.html b/apps/archive/templates/archive/list_publishing.html index 501b94c..6bcf9e0 100755 --- a/apps/archive/templates/archive/list_publishing.html +++ b/apps/archive/templates/archive/list_publishing.html @@ -14,7 +14,7 @@