aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-24 15:20:53 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-24 15:20:53 +0100
commit1227508f15e7f4379db7bad747d8e91c840b818e (patch)
treedfd798f61d630909b3e432dbf4419291e6ef48b9
parent585c05e32096b1d84e285064e78150db40a0ca05 (diff)
added message to say there are no events on org detail page when there are none
-rw-r--r--ctrack/organisations/templates/organisations/organisation_detail.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html
index 46d1aba..c4bae23 100644
--- a/ctrack/organisations/templates/organisations/organisation_detail.html
+++ b/ctrack/organisations/templates/organisations/organisation_detail.html
@@ -189,7 +189,8 @@
<div>
- <table class="table table-small table-bordered">
+ {% if single_datetime_events %}
+ <table class="table table-small table-bordered">
<thead>
<tr>
<th scope="col">Type</th>
@@ -255,6 +256,9 @@
{% endfor %}
</tbody>
</table>
+ {% else %}
+ <p><em>No events.</em></p>
+ {% endif %}
</div>
</div>
</div>
@@ -321,7 +325,7 @@
</tbody>
</table>
{% else %}
- <p>No notes.</p>
+ <p><em>No notes.</em></p>
{% endif %}
</div>
</div>