X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/13b9f2b0a12f6077b36cde955a77319034f19cef..a3bff3a1ab98b4d4334901b906d602a5d1f0417a:/apps/archive/templates/archive/file_managed.html diff --git a/apps/archive/templates/archive/file_managed.html b/apps/archive/templates/archive/file_managed.html index db8e4f6..58f45ef 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 }}).

@@ -42,30 +42,56 @@ {% else %} -
{% tags_table audiobook.new_publish_tags 0 %} + + + {% csrf_token %} + + + + {% if not audiobook.mp3_published or not audiobook.ogg_published %} + + {% csrf_token %} + + + {% endif %} + +
- {% csrf_token %} -
- {% endif %}
-{% if audiobook.mp3_published %} -

Published MP3

- {{ audiobook.mp3_published }} - {% tags_table audiobook.mp3_published_tags.tags %} -{% else %}

MP3 file hasn't been published yet.

+{% if audiobook.mp3_file %} +

{% trans "MP3 file" %}

+

{% trans "Download MP3 file." %}

+ {% if audiobook.mp3_published %} +

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

+ {% if audiobook.mp3_published_tags.tags %} + {% tags_table audiobook.mp3_published_tags.tags %} + {% endif %} + {% else %} +

{% trans "Not published yet." %}

+ {% endif %} +{% else %} +

{% trans "MP3 file hasn't been generated yet." %}

{% endif %}
-{% if audiobook.ogg_published %} -

Published Ogg Vorbis

- {{ audiobook.ogg_published }} - {% tags_table audiobook.ogg_published_tags.tags %} -{% else %}Ogg Vorbis file hasn't been published yet. +{% if audiobook.ogg_file %} +

{% trans "Ogg Vorbis file" %}

+

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

+ {% if audiobook.ogg_published %} +

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

+ {% if audiobook.ogg_published_tags.tags %} + {% tags_table audiobook.ogg_published_tags.tags %} + {% endif %} + {% else %} +

{% trans "Not published yet." %}

+ {% endif %} +{% else %} +

{% trans "Ogg Vorbis file hasn't been generated yet." %}

{% endif %}