From da1ade224e77dc13c9951eb2e0ece0f2259f7756 Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Mon, 28 Aug 2017 17:24:49 -0400 Subject: [PATCH] Change description classes and try to hide comment bubble --- netbox/templates/dcim/device.html | 2 ++ netbox/templates/dcim/inc/interface.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index f029bf2f9..e12801d89 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -635,8 +635,10 @@ $('button.toggle-description').click(function() { var selected = $(this).attr('selected'); if (selected) { $('span.iface-description').hide(); + $('i.fa-comment-o').show(); } else { $('span.iface-description').show(); + $('i.fa-comment-o').hide(); } $(this).attr('selected', !selected); $(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked'); diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index 35f6c98e9..fb18c55e6 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -15,7 +15,7 @@ {% endif %} {% if iface.description %} - {{ iface.description }} + {{ iface.description }} {% endif %}