Loading src/webui/service/device/routes.py +1 −3 Original line number Diff line number Diff line Loading @@ -158,9 +158,7 @@ def inventory(device_uuid: str): flash('Device({:s}) not found'.format(str(device_uuid)), 'danger') device_obj = Device() context_client.close() return render_template( 'device/inventory.html', device=device_obj, dde=DeviceDriverEnum, dose=DeviceOperationalStatusEnum) return render_template('device/inventory.html', device=device_obj) @device.get('<path:device_uuid>/delete') def delete(device_uuid): Loading src/webui/service/templates/device/inventory.html +10 −12 Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ <div class="row mb-3"> <div class="col-sm-3"> <ul id="myUL"> <li><span class="caret"></span>>Components</span> <li><span class="caret"></span>Components</span> <ul class="nested"> {% for item in (device.components|sort(true, attribute='name')) %} {% if item.parent |length < 1 or item.type=='CHASSIS' %} Loading Loading @@ -148,6 +148,4 @@ {% endif %} </div> {% endblock %} Loading
src/webui/service/device/routes.py +1 −3 Original line number Diff line number Diff line Loading @@ -158,9 +158,7 @@ def inventory(device_uuid: str): flash('Device({:s}) not found'.format(str(device_uuid)), 'danger') device_obj = Device() context_client.close() return render_template( 'device/inventory.html', device=device_obj, dde=DeviceDriverEnum, dose=DeviceOperationalStatusEnum) return render_template('device/inventory.html', device=device_obj) @device.get('<path:device_uuid>/delete') def delete(device_uuid): Loading
src/webui/service/templates/device/inventory.html +10 −12 Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ <div class="row mb-3"> <div class="col-sm-3"> <ul id="myUL"> <li><span class="caret"></span>>Components</span> <li><span class="caret"></span>Components</span> <ul class="nested"> {% for item in (device.components|sort(true, attribute='name')) %} {% if item.parent |length < 1 or item.type=='CHASSIS' %} Loading Loading @@ -148,6 +148,4 @@ {% endif %} </div> {% endblock %}