fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start to reorganize views a little.
[audio.git]
/
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
61eaca4
..
ecb6292
100644
(file)
--- a/
src/archive/templates/archive/file_managed.html
+++ b/
src/archive/templates/archive/file_managed.html
@@
-3,9
+3,12
@@
{% load tags %}
{% load bootstrap4 %}
{% load tags %}
{% load bootstrap4 %}
-{% block content %}
+
+{% block menu-active-audiobooks %}active{% endblock %}
+{% block content %}
+
{% for alert in alerts %}
<div class="mt-4 alert alert-warning">{{ alert }}</div>
{% for alert in alerts %}
<div class="mt-4 alert alert-warning">{{ alert }}</div>
@@
-73,6
+76,7
@@
{% endif %}
</div>
<div class="col-md-6">
{% endif %}
</div>
<div class="col-md-6">
+ {% if audiobook.is_youtube_publishable %}
<p>
<a href="{% url 'youtube_preview' audiobook.id %}">
{% trans "Preview YouTube metadata" %}
<p>
<a href="{% url 'youtube_preview' audiobook.id %}">
{% trans "Preview YouTube metadata" %}
@@
-83,6
+87,7
@@
<input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
</form>
<br>
<input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
</form>
<br>
+ {% endif %}
{% if audiobook.youtube_id %}
<form method="post" action="{% url 'youtube_update' audiobook.id %}">
{% csrf_token %}
{% if audiobook.youtube_id %}
<form method="post" action="{% url 'youtube_update' audiobook.id %}">
{% csrf_token %}