Model |
- {{ device.device_type.full_name }} |
+ {{ device.device_type.display_name }} |
Serial Number |
diff --git a/netbox/templates/dcim/inc/devicebay.html b/netbox/templates/dcim/inc/devicebay.html
index 656116c89..dc2977855 100644
--- a/netbox/templates/dcim/inc/devicebay.html
+++ b/netbox/templates/dcim/inc/devicebay.html
@@ -15,7 +15,7 @@
{{ devicebay.installed_device }}
- {{ devicebay.installed_device.device_type.full_name }}
+ {{ devicebay.installed_device.device_type.display_name }}
|
{% else %}
|
diff --git a/netbox/templates/dcim/inc/frontport.html b/netbox/templates/dcim/inc/frontport.html
index 3ac87e090..6ec5857ac 100644
--- a/netbox/templates/dcim/inc/frontport.html
+++ b/netbox/templates/dcim/inc/frontport.html
@@ -27,9 +27,24 @@
{% if frontport.cable %}
{{ frontport.cable }}
+
+
+
|
{% with far_end=frontport.get_cable_peer %}
- {{ far_end.parent }} |
+
+ {% if far_end.parent.provider %}
+
+
+ {{ far_end.parent.provider }}
+ {{ far_end.parent }}
+
+ {% else %}
+
+ {{ far_end.parent }}
+
+ {% endif %}
+ |
{{ far_end }} |
{% endwith %}
{% else %}
diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html
index 3d8057208..7c1e9f267 100644
--- a/netbox/templates/dcim/inc/interface.html
+++ b/netbox/templates/dcim/inc/interface.html
@@ -1,5 +1,5 @@
{% load helpers %}
-
+
{# Checkbox #}
{% if perms.dcim.change_interface or perms.dcim.delete_interface %}
diff --git a/netbox/templates/dcim/inc/rack_elevation.html b/netbox/templates/dcim/inc/rack_elevation.html
index e7beeb9ba..ced6eb929 100644
--- a/netbox/templates/dcim/inc/rack_elevation.html
+++ b/netbox/templates/dcim/inc/rack_elevation.html
@@ -26,7 +26,7 @@
{% ifequal u.device.face face_id %}
+ data-content="{{ u.device.device_role }}
{{ u.device.device_type.display_name }} ({{ u.device.device_type.u_height }}U){% if u.device.asset_tag %}
{{ u.device.asset_tag }}{% endif %}{% if u.device.serial %}
{{ u.device.serial }}{% endif %}">
{{ u.device }}
{% if u.device.devicebay_count %}
({{ u.device.get_children.count }}/{{ u.device.devicebay_count }})
diff --git a/netbox/templates/dcim/inc/rearport.html b/netbox/templates/dcim/inc/rearport.html
index fc6b5c1df..e16cc82c5 100644
--- a/netbox/templates/dcim/inc/rearport.html
+++ b/netbox/templates/dcim/inc/rearport.html
@@ -26,9 +26,24 @@
{% if rearport.cable %}
{{ rearport.cable }}
+
+
+
|
{% with far_end=rearport.get_cable_peer %}
- {{ far_end.parent }} |
+
+ {% if far_end.parent.provider %}
+
+
+ {{ far_end.parent.provider }}
+ {{ far_end.parent }}
+
+ {% else %}
+
+ {{ far_end.parent }}
+
+ {% endif %}
+ |
{{ far_end }} |
{% endwith %}
{% else %}
diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html
index 1d92aac22..fe9e2ab7c 100644
--- a/netbox/templates/dcim/rack.html
+++ b/netbox/templates/dcim/rack.html
@@ -208,7 +208,7 @@
{{ device }}
{{ device.device_role }} |
- {{ device.device_type.full_name }} |
+ {{ device.device_type.display_name }} |
{% if device.parent_bay %}
{{ device.parent_bay }}
diff --git a/netbox/users/views.py b/netbox/users/views.py
index 171d444b9..6ec984936 100644
--- a/netbox/users/views.py
+++ b/netbox/users/views.py
@@ -7,6 +7,7 @@ from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.utils.decorators import method_decorator
from django.utils.http import is_safe_url
+from django.views.decorators.debug import sensitive_post_parameters
from django.views.generic import View
from secrets.forms import UserKeyForm
@@ -23,6 +24,10 @@ from .models import Token
class LoginView(View):
template_name = 'login.html'
+ @method_decorator(sensitive_post_parameters('password'))
+ def dispatch(self, *args, **kwargs):
+ return super().dispatch(*args, **kwargs)
+
def get(self, request):
form = LoginForm(request)
|