X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/c84a8c9ad465608d565821914169f19f30b3b2c3..d7186e88fcc0cf5d5449a16d3907e01aaafc484e:/src/archive/templates/archive/file_managed.html diff --git a/src/archive/templates/archive/file_managed.html b/src/archive/templates/archive/file_managed.html index 25a6b81..f7992e4 100644 --- a/src/archive/templates/archive/file_managed.html +++ b/src/archive/templates/archive/file_managed.html @@ -12,7 +12,7 @@

{% trans "Publishing" %}

- {% if audiobook.mp3_status or audiobook.ogg_status %} + {% if audiobook.mp3_status or audiobook.ogg_status or audiobook.youtube_status %}

{% trans "Publishing pending" %}

{% csrf_token %} @@ -37,30 +37,50 @@

Status: {{ audiobook.get_ogg_status_display }}

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

YouTube

+ +

Status: {{ audiobook.get_youtube_status_display }}

+ {% endif %} + {% else %} {% tags_table audiobook.new_publish_tags 0 %}
- {% if user_can_publish %} - - {% csrf_token %} - - - {% else %} - Podłącz się - {% endif %} - - {% if not audiobook.mp3_published or not audiobook.ogg_published %} -
- {% csrf_token %} - -
- {% endif %} - - - +
+
+ {% if user_can_publish %} +
+ {% csrf_token %} + +
+ {% else %} + Podłącz się + {% endif %} + + {% if not audiobook.mp3_published or not audiobook.ogg_published %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+ {% csrf_token %} + +
+ +
+ {% csrf_token %} + +
+ +
+
{% endif %} @@ -69,7 +89,7 @@
-
+

{% trans "MP3 file" %}

@@ -92,7 +112,7 @@
-
+

{% trans "Ogg Vorbis file" %}

@@ -115,6 +135,29 @@
+
+
+
+

{% trans "YouTube" %}

+
+
+ {% if audiobook.youtube_file %} +

{% trans "Download YouTube file." %}

+ {% if audiobook.youtube_published %} +

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

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

{% trans "Not published yet." %}

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

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

+ {% endif %} +
+
+
+