diff --git a/ram/portal/templates/bookshelf/book.html b/ram/portal/templates/bookshelf/book.html index 0acecef..778fcd4 100644 --- a/ram/portal/templates/bookshelf/book.html +++ b/ram/portal/templates/bookshelf/book.html @@ -9,6 +9,9 @@ {% endfor %}

{% endif %} + {% if not book.published %} + Unpublished | + {% endif %} Updated {{ book.updated_time | date:"M d, Y H:i" }} {% endblock %} {% block carousel %} @@ -60,11 +63,6 @@ {% if type == "catalog" %}Catalog {% elif type == "book" %}Book{% endif %} -
- {% if not book.published %} - Draft - {% endif %} -
diff --git a/ram/portal/templates/cards/book.html b/ram/portal/templates/cards/book.html index e3eec4a..6205aee 100644 --- a/ram/portal/templates/cards/book.html +++ b/ram/portal/templates/cards/book.html @@ -28,7 +28,7 @@ {% elif d.type == "book" %}Book{% endif %}
{% if not d.item.published %} - Draft + Unpublished {% endif %}
diff --git a/ram/portal/templates/cards/consist.html b/ram/portal/templates/cards/consist.html index 7b11d6b..5d22611 100644 --- a/ram/portal/templates/cards/consist.html +++ b/ram/portal/templates/cards/consist.html @@ -27,12 +27,12 @@ Consist
+ {% if not d.item.published %} + Unpublished + {% endif %} {% if d.item.company.freelance %} Freelance {% endif %} - {% if not d.item.published %} - Draft - {% endif %}
diff --git a/ram/portal/templates/cards/roster.html b/ram/portal/templates/cards/roster.html index bdb57fe..4eecc96 100644 --- a/ram/portal/templates/cards/roster.html +++ b/ram/portal/templates/cards/roster.html @@ -25,12 +25,12 @@ Rolling stock
+ {% if not d.item.published %} + Unpublished + {% endif %} {% if d.item.company.freelance %} Freelance {% endif %} - {% if not d.item.published %} - Draft - {% endif %}
diff --git a/ram/portal/templates/consist.html b/ram/portal/templates/consist.html index 25d1e3b..587a5ba 100644 --- a/ram/portal/templates/consist.html +++ b/ram/portal/templates/consist.html @@ -7,6 +7,9 @@ {{ t.name }}{# new line is required #} {% endfor %}

+ {% if not consist.published %} + Unpublished | + {% endif %} Updated {{ consist.updated_time | date:"M d, Y H:i" }} {% endif %} {% endblock %} @@ -83,9 +86,6 @@ {% if consist.company.freelance %} Freelance {% endif %} - {% if not consist.published %} - Draft - {% endif %} diff --git a/ram/portal/templates/flatpages/flatpage.html b/ram/portal/templates/flatpages/flatpage.html index 004a098..1a9289c 100644 --- a/ram/portal/templates/flatpages/flatpage.html +++ b/ram/portal/templates/flatpages/flatpage.html @@ -1,6 +1,9 @@ {% extends 'base.html' %} {% block header %} + {% if not flatpage.published %} + Unpublished | + {% endif %} Updated {{ flatpage.updated_time | date:"M d, Y H:i" }} {% endblock %} {% block carousel %} @@ -9,11 +12,6 @@
- {% if not flatpage.published %} - - {% endif %}
{{ flatpage.content | safe }}
{% if request.user.is_staff %}Edit{% endif %} diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html index 6e4d6e0..60eca37 100644 --- a/ram/portal/templates/rollingstock.html +++ b/ram/portal/templates/rollingstock.html @@ -8,6 +8,9 @@ {% endfor %}

{% endif %} + {% if not rolling_stock.published %} + Unpublished | + {% endif %} Updated {{ rolling_stock.updated_time | date:"M d, Y H:i" }} {% endblock %} {% block carousel %} @@ -77,9 +80,6 @@ {% if company.freelance %} Freelance {% endif %} - {% if not rolling_stock.published %} - Draft - {% endif %}