+
{% trans "Last published" %}:
+ {% if book.last_published %}
+ {{ book.last_published }}
+ {% else %}
+ —
+ {% endif %}
+
+
+ {% if publishable %}
+
+ {% trans "Full XML" %}
+ {% trans "HTML version" %}
+ {% trans "TXT version" %}
+ {% trans "PDF version" %}
+ {% trans "PDF version for mobiles" %}
+ {% trans "EPUB version" %}
+ {% trans "MOBI version" %}
+
+
+ {% if user.is_authenticated %}
+
+
+
+
+ {% if perms.depot.add_shopbookpublish %}
+ {% depot_shops book as shops %}
+ {% for shop in shops %}
+
+
{{ shop.name }}
+ {% if not shop.errors %}
+
+ {% if shop.comment %}
+
+ {{ shop.comment }}
+
+ {% endif %}
+ {% else %}
+ {% for error in shop.errors %}
+
+ {{ error }}
+
+ {% endfor %}
+ {% endif %}
+ {% for warning in shop.warnings %}
+
+ {{ warning }}
+
+ {% endfor %}
+ {% if shop.id %}
+ id:{{ shop.id }}
+ {% endif %}
+ {% with last=shop.last %}
+ {% if last %}
+ {{ last.created_at }} →
+ {{ last.started_at }} →
+ {{ last.finished_at }}
+
+ ({{ last.get_status_display }})
+
+
+ {% endif %}
+ {% endwith %}
+ {% endfor %}
+ {% endif %}
+
+ {% else %}
+
{% trans "Log in to publish." %}
+ {% endif %}
+ {% else %}
+
{% trans "This book can't be published yet, because:" %}
+
+ {% endif %}