X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/2d1d955bb3b4a5ca4dad1153c062c9ab3b6319e7..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 897aae2..58f45ef 100755 --- a/apps/archive/templates/archive/file_managed.html +++ b/apps/archive/templates/archive/file_managed.html @@ -1,42 +1,97 @@ {% extends "archive/base.html" %} {% load i18n %} +{% load tags %} {% block content %} +

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

+

{% trans "Publishing" %}

-{% if audiobook.publish_wait %} -

{% trans "Audiobook marked for publishing with tags:" %}

+{% if audiobook.mp3_status or audiobook.ogg_status %} - - {% for t, v in audiobook.publishing_tags.items %} - - {% endfor %} +

{% trans "Publishing pending" %}

+ + + {% csrf_token %} + + + + +{% if audiobook.mp3_status %} +
+

MP3

+ + {% tags_table audiobook.mp3_tags.tags %} + +

Status: {{ audiobook.get_mp3_status_display }}

+{% endif %} + +{% if audiobook.ogg_status %} +
+

Ogg Vorbis

+ + {% tags_table audiobook.ogg_tags.tags %} + +

Status: {{ audiobook.get_ogg_status_display }}

+{% endif %} + + + + +{% else %} +
{{ t }}{{ v }}
+ {% tags_table audiobook.new_publish_tags 0 %} +
+ +
+ {% csrf_token %} + +
+ + {% if not audiobook.mp3_published or not audiobook.ogg_published %} +
+ {% csrf_token %} + +
+ {% endif %} + +
+{% endif %} - {% if audiobook.publishing %} -

{% trans "Publishing already in progress." %}

+
+{% 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 %} -
- {% csrf_token %} - -
+

{% trans "Not published yet." %}

{% endif %} {% else %} - {% if audiobook.published %} - Here be currently published version, for comparison. - {% endif %} - -
- - {% for k, v in audiobook.new_publish_tags.items %} - - {% endfor %} +

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

+{% endif %} - {% csrf_token %} - -
{{ k }}{{ v }}
-
+
+{% 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 %} @@ -49,16 +104,9 @@

{% trans "Update tags" %}

+Last modified: {{ audiobook.modified }} - - {% for t, v in tags.items %} - - {% endfor %} -
{{t}} - {% for x in v %} - {{x}}
- {% endfor %} -
+{% multiple_tags_table tags %} @@ -72,5 +120,16 @@ +
+ + + +
+ {% csrf_token %} + +
+ + {% endblock %}