From 298ac1ba7a19ce4dadbd7d6bf857dbb1fc61aaa9 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 9 Dec 2016 16:23:11 -0500 Subject: [PATCH] Widened page layout; improved mobile rendering --- netbox/project-static/css/base.css | 11 ++- netbox/templates/circuits/circuit.html | 6 +- netbox/templates/circuits/provider.html | 6 +- netbox/templates/dcim/device.html | 5 +- netbox/templates/dcim/inc/_device_header.html | 5 +- netbox/templates/dcim/rack.html | 6 +- netbox/templates/dcim/site.html | 6 +- netbox/templates/home.html | 14 +-- netbox/templates/ipam/aggregate.html | 6 +- netbox/templates/ipam/inc/prefix_header.html | 5 +- netbox/templates/ipam/ipaddress.html | 6 +- netbox/templates/ipam/prefix.html | 1 - netbox/templates/ipam/vlan.html | 6 +- netbox/templates/ipam/vrf.html | 6 +- netbox/templates/paginator.html | 10 +- netbox/templates/secrets/secret.html | 2 +- netbox/templates/tenancy/tenant.html | 6 +- netbox/templates/users/_user.html | 22 +++++ netbox/templates/users/change_password.html | 58 ++++------- netbox/templates/users/inc/profile_nav.html | 6 -- netbox/templates/users/profile.html | 40 +++----- netbox/templates/users/recent_activity.html | 45 ++++----- netbox/templates/users/userkey.html | 71 ++++++-------- netbox/templates/users/userkey_edit.html | 95 ++++++++----------- netbox/templates/utilities/obj_table.html | 1 + netbox/users/views.py | 7 +- 26 files changed, 205 insertions(+), 247 deletions(-) create mode 100644 netbox/templates/users/_user.html delete mode 100644 netbox/templates/users/inc/profile_nav.html diff --git a/netbox/project-static/css/base.css b/netbox/project-static/css/base.css index ff9eb98c1..8503f465e 100644 --- a/netbox/project-static/css/base.css +++ b/netbox/project-static/css/base.css @@ -13,7 +13,7 @@ body { } .container { width: auto; - max-width: 1340px; + max-width: 1600px; } .wrapper { min-height: 100%; @@ -35,7 +35,8 @@ footer p { margin: 20px 0; } -@media (max-width: 1200px) { +/* Collapse the nav menu on displays less than 1200px wide */ +@media (max-width: 1199px) { .navbar-header { float: none; } @@ -58,7 +59,7 @@ footer p { max-height: none; } .navbar-nav { - float: none!important; + float: none !important; margin-top: 7.5px; } .navbar-nav>li { @@ -90,8 +91,12 @@ tfoot td { } /* Paginator */ +div.paginator { + margin-bottom: 20px; +} nav ul.pagination { margin-top: 0; + margin-bottom: 8px !important; } /* Racks */ diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index 5b9f8381f..1c2df3680 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -5,14 +5,14 @@ {% block content %}
-
+
-
+
@@ -40,6 +40,7 @@ {% endif %}

{{ circuit.provider }} - {{ circuit.cid }}

+{% include 'inc/created_updated.html' with obj=circuit %}
@@ -107,7 +108,6 @@ {% with circuit.get_custom_fields as custom_fields %} {% include 'inc/custom_fields_panel.html' %} {% endwith %} - {% include 'inc/created_updated.html' with obj=circuit %}
diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index c59858626..d7f945ab2 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -6,13 +6,13 @@ {% block content %}
-
+
-
+
@@ -46,6 +46,7 @@ {% endif %}

{{ provider }}

+{% include 'inc/created_updated.html' with obj=provider %}
@@ -120,7 +121,6 @@ {% endif %}
- {% include 'inc/created_updated.html' with obj=provider %}
diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 785938970..f3158b98c 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -8,7 +8,7 @@ {% block content %} {% include 'dcim/inc/_device_header.html' with active_tab='info' %}
-
+
Device @@ -301,9 +301,8 @@
None found
{% endif %}
- {% include 'inc/created_updated.html' with obj=device %}
-
+
{% if device_bays or device.device_type.is_parent_device %} {% if perms.dcim.delete_devicebay %} diff --git a/netbox/templates/dcim/inc/_device_header.html b/netbox/templates/dcim/inc/_device_header.html index 7b0b69d61..74b453e1d 100644 --- a/netbox/templates/dcim/inc/_device_header.html +++ b/netbox/templates/dcim/inc/_device_header.html @@ -1,5 +1,5 @@
-
+
{% if device.rack %} {% endif %}
-
+
@@ -41,6 +41,7 @@ {% endif %}

{{ device }}

+{% include 'inc/created_updated.html' with obj=device %}