summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-08-06 22:24:53 +0200
committerSebastian Reichel <sre@ring0.de>2012-08-06 22:24:53 +0200
commit981bf6c511e37da357ab4dbb558e53297f959676 (patch)
tree9b0943a0df50b0eaa34d1922c74d057be8f61464
parent13476f388e2c5c7931b596192919912e72f2bf02 (diff)
downloadktt-inventory-system-981bf6c511e37da357ab4dbb558e53297f959676.tar.bz2
only show note field for items with notes
-rw-r--r--inventar/templates/item.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/inventar/templates/item.html b/inventar/templates/item.html
index 8fa7a24..86845e3 100644
--- a/inventar/templates/item.html
+++ b/inventar/templates/item.html
@@ -24,10 +24,12 @@
<td><pre>{{ description }}</pre></td>
</tr>
+ {% if note %}
<tr class="{% cycle rowcolor %}">
<th><img src="/static/note.svg" width="32" height="32" title="{% trans "Note" %}" alt="{% trans "Note" %}" /></th>
<td><pre>{{ note }}</pre></td>
</tr>
+ {% endif %}
{% if image %}
<tr class="{% cycle rowcolor %}">