From 704f4f6b0dbdeffa0e22f7dbd4b3c50cd6ff5ec4 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Tue, 7 Nov 2017 09:10:41 +0100 Subject: [PATCH] Add Mac/IP/hostname to item view --- app/templates/view_item.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/templates/view_item.html b/app/templates/view_item.html index 2c039be..05ff5e0 100644 --- a/app/templates/view_item.html +++ b/app/templates/view_item.html @@ -23,6 +23,10 @@ <dd class="col-sm-9">{{ item['location'] }}</dt> <dt class="col-sm-3">Status</dt> <dd class="col-sm-9">{{ item['status'] }}</dt> + {% for mac in item['macs'] %} + <dt class="col-sm-3">Address{{ loop.index }}</dt> + <dd class="col-sm-9">{{ mac.address }} / {{ mac.host.ip }} / {{ mac.host.name }}</dt> + {% endfor %} <dt class="col-sm-3">Parent</dt> <dd class="col-sm-9">{{ link_to_item(item['parent']) }}</dt> <dt class="col-sm-3">Children</dt> -- GitLab