+
+
+ <div class="card mt-4">
+ <div class="card-header">
+ <h3>Metadane dla MP3, Ogg</h3>
+ </div>
+ <div class="card-body">
+ <table class='table'>
+ tagi, które zostałyby zapisane do pliku, gdyby go teraz opublikować
+ {% tags_table audiobook.new_publish_tags 0 %}
+ </table>
+ </div>
+ </div>
+
+ </div>
+
+
+ <div class="col-xl-4">
+ <div class="card mt-4">
+ <div class="card-header">
+ <h3>
+ YouTube
+ {% if audiobook.youtube_status %}
+ <span class="badge badge-pill badge-primary">{{ audiobook.get_youtube_status_display }}</span>
+ {% endif %}
+ </h3>
+ </div>
+ <div class="card-body">
+ <img src="{% url 'youtube_thumbnail' audiobook.id %}" style="width:100%">
+ <strong>{{ youtube_title }}</strong><br><br>
+ {{ youtube_description|linebreaksbr }}
+
+
+
+ {% if audiobook.is_youtube_publishable %}
+ <br>
+ <p>
+ <a href="{% url 'youtube_preview' audiobook.id %}">
+ {% trans "Preview YouTube metadata" %}
+ </a>
+ </p>
+
+ {% endif %}
+
+ {% if audiobook.youtube_id %}
+ <form method="post" action="{% url 'youtube_update_thumbnail' audiobook.id %}">
+ {% csrf_token %}
+ <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube thumbnail" %}">
+ </form>
+ <br>
+
+ <form method="post" action="{% url 'youtube_update' audiobook.id %}">
+ {% csrf_token %}
+ <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube metadata" %}">
+ </form>
+ {% endif %}
+ <form method="post" action="{% url 'youtube_publish' audiobook.id %}">
+ {% csrf_token %}
+ <input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
+ </form>
+
+ </div>
+ <div class="card-footer">
+ {% if audiobook.youtube_id %}
+ <p>
+ <a href="https://youtu.be/{{ audiobook.youtube_id }}" target="_blank" title="{% trans "See on YouTube" %}">
+ <img src="https://i.ytimg.com/vi/{{ audiobook.youtube_id }}/hq720.jpg" style="width: 100%">
+ </a>
+ </p>
+ {% endif %}
+ <p>{% trans "Published:" %} {{ audiobook.youtube_published }}</a></p>
+
+ </div>
+ </div>