X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/13b9f2b0a12f6077b36cde955a77319034f19cef..c175a7540d20336179dfd453183bfe69e6f5827e:/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..5a54adb 100755 --- a/apps/archive/templates/archive/file_managed.html +++ b/apps/archive/templates/archive/file_managed.html @@ -42,30 +42,52 @@ {% 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 }}

+ {% tags_table audiobook.mp3_published_tags.tags %} + {% 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 }}

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

{% trans "Not published yet." %}

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

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

{% endif %}