Start to reorganize views a little.
[audio.git] / src / archive / templates / archive / status.html
diff --git a/src/archive/templates/archive/status.html b/src/archive/templates/archive/status.html
new file mode 100644 (file)
index 0000000..2e8aa3b
--- /dev/null
@@ -0,0 +1,21 @@
+{% load i18n %}
+
+{% if published %}
+  {% if link %}
+    <a href="{{ link }}" target="_blank">
+  {% endif %}
+  <span class="badge badge-success" title="{{ format }}: {% trans "Published at" %} {{ published }} %}">
+    {% trans "OK" %}
+  </span>
+  {% if link %}
+    </a>
+  {% endif %}
+{% elif status %}
+  <span class="badge badge-info">
+    {{ status }}
+  </span>
+{% else %}
+  <span class="badge badge-secondary">
+   ––
+  </span>
+{% endif %}