X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/9e7f72dcee48e4ced62061b559db75dcf9b79694..7a728f387a0969d0ca4cfc7b7877bf4fa255eef9:/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..f08f951 100644 --- a/src/archive/templates/archive/file_managed.html +++ b/src/archive/templates/archive/file_managed.html @@ -7,12 +7,16 @@ +{% for alert in alerts %} +
{{ alert }}
+{% endfor %} +

{% 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 +41,59 @@

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 %} +
+
+ {% if audiobook.is_youtube_publishable %} +

+ + {% trans "Preview YouTube metadata" %} + +

+
+ {% csrf_token %} + +
+
+ {% endif %} + {% if audiobook.youtube_id %} +
+ {% csrf_token %} + +
+ {% endif %} + +
+
{% endif %} @@ -69,7 +102,7 @@
-
+

{% trans "MP3 file" %}

@@ -92,7 +125,7 @@
-
+

{% trans "Ogg Vorbis file" %}

@@ -115,6 +148,33 @@
+
+
+
+

{% trans "YouTube" %}

+
+
+ {% if audiobook.youtube_id %} + {% if audiobook.youtube_id %} +

+ {% trans "See on YouTube" %} +

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