From 52cbdf9507949f77fd2ec865987a68d8944dff91 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Thu, 5 Apr 2018 22:38:14 +0200 Subject: [PATCH] Add model description to view item The description is only shown if not empty JIRA INFRA-280 --- app/templates/inventory/view_item.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/templates/inventory/view_item.html b/app/templates/inventory/view_item.html index 8def1b3..c6e1814 100644 --- a/app/templates/inventory/view_item.html +++ b/app/templates/inventory/view_item.html @@ -30,6 +30,10 @@ <dd class="col-sm-9">{{ item.manufacturer }}</dd> <dt class="col-sm-3">Model</dt> <dd class="col-sm-9">{{ item.model }}</dd> + {% if item.model.description %} + <dt class="col-sm-3">Model description</dt> + <dd class="col-sm-9">{{ item.model.description }}</dd> + {% endif %} <dt class="col-sm-3">Location</dt> <dd class="col-sm-9">{{ item.location }}</dd> <dt class="col-sm-3">Status</dt> -- GitLab