diff --git a/ram/portal/templates/bookshelf/book.html b/ram/portal/templates/bookshelf/book.html index 47be5c6..05661d7 100644 --- a/ram/portal/templates/bookshelf/book.html +++ b/ram/portal/templates/bookshelf/book.html @@ -59,11 +59,15 @@
Catalog | - {% elif type == "book" %} -Book | - {% endif %} +
+ {% if type == "catalog" %}Catalog
+ {% elif type == "book" %}Book{% endif %}
+
+ {% if not book.published %}
+ Draft
+ {% endif %}
+
+ |
---|
Catalog | - {% elif d.type == "book" %} -Book | - {% endif %} +
+ {% if d.type == "catalog" %}Catalog
+ {% elif d.type == "book" %}Book{% endif %}
+
+ {% if not d.item.published %}
+ Draft
+ {% endif %}
+
+ |
|||
---|---|---|---|---|---|
Company
- {% if d.item.freelance %}
- Freelance
- {% endif %}
+
+ {% if d.item.freelance %}
+ Freelance
+ {% endif %}
+
|
|||||
Consist
- {% if d.item.company.freelance %}
- Freelance
- {% endif %}
+
+ {% if d.item.company.freelance %}
+ Freelance
+ {% endif %}
+ {% if not d.item.published %}
+ Draft
+ {% endif %}
+
|
|||||
Rolling stock
- {% if d.item.rolling_class.company.freelance %}
- Freelance
- {% endif %}
+
+ {% if d.item.company.freelance %}
+ Freelance
+ {% endif %}
+ {% if not d.item.published %}
+ Draft
+ {% endif %}
+
|
|||||
Company | - {{ d.item.rolling_class.company }} + {{ d.item.company }} | ||||
Decoder | +Interface | +{{ d.item.get_decoder_interface }} | +
---|---|---|
Decoder | {{ d.item.decoder }} | |
Address | {{ d.item.address }} |