X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/f2ed1449ece59c6247b8befc9ca6f423f7e4b004..9e7f72dcee48e4ced62061b559db75dcf9b79694:/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 old mode 100755 new mode 100644 index 498b27b..25a6b81 --- a/src/archive/templates/archive/file_managed.html +++ b/src/archive/templates/archive/file_managed.html @@ -1,139 +1,158 @@ {% extends "archive/base.html" %} {% load i18n %} {% load tags %} +{% load bootstrap4 %} {% block content %} -

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

-

{% trans "Publishing" %}

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

{% trans "Publishing" %}

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

{% trans "Publishing pending" %}

+
+ {% csrf_token %} + +
-

{% trans "Publishing pending" %}

+ {% if audiobook.mp3_status %} +
+

MP3

-
- {% csrf_token %} - -
+ {% tags_table audiobook.get_mp3_tags.tags %} +

Status: {{ audiobook.get_mp3_status_display }}

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

Ogg Vorbis

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

Status: {{ audiobook.get_ogg_status_display }}

+ {% endif %} + {% else %} -{% 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 %} - + {% if user_can_publish %} + + {% csrf_token %} + +
+ {% else %} + Podłącz się + {% endif %} + + {% if not audiobook.mp3_published or not audiobook.ogg_published %} +
+ {% csrf_token %} +
{% endif %} + +
-{% endif %} - -
-{% 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_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 %} +
+
+ + +
+
+
+
+

{% trans "MP3 file" %}

+
+
+ {% if audiobook.mp3_file %} +

{% trans "Download MP3 file." %}

+ {% if audiobook.mp3_published %} +

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

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

{% trans "Not published yet." %}

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

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

{% endif %} - {% else %} -

{% trans "Not published yet." %}

- {% endif %} -{% else %} -

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

-{% endif %} - - - - -
- - - - -

{% trans "Update tags" %}

- -Last modified: {{ audiobook.modified }} - -{% multiple_tags_table tags %} - - - -
- {% csrf_token %} - - {{ form.as_table }} - -
-
- - - -
- - - -
- {% csrf_token %} - -
- - +
+
+
+ +
+
+
+

{% trans "Ogg Vorbis file" %}

+
+
+ {% if audiobook.ogg_file %} +

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

+ {% if audiobook.ogg_published %} +

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

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

{% trans "Not published yet." %}

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

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

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

Plik źródłowy

+
+
+

Last modified: {{ audiobook.modified }}

+

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

+ {% multiple_tags_table tags %} + +
+ {% csrf_token %} + +
+ +
+
+
+ +
+
+
+

{% trans "Update tags" %}

+
+
+ +
+ {% csrf_token %} + {% bootstrap_form form %} + +
+ +
+
+
+
{% endblock %}