mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-16 04:28:17 -06:00
Use fluid containers for all views
This commit is contained in:
parent
606d1dded3
commit
3af291940e
@ -73,7 +73,6 @@ class ObjectView(BaseObjectView):
|
||||
return render(request, self.get_template_name(), {
|
||||
'object': instance,
|
||||
'tab': self.tab,
|
||||
'page_width': 'xl',
|
||||
**self.get_extra_context(request, instance),
|
||||
})
|
||||
|
||||
|
@ -41,7 +41,7 @@ Blocks:
|
||||
|
||||
{# Top menu #}
|
||||
<header class="navbar navbar-expand-md d-none d-lg-flex d-print-none">
|
||||
<div class="container-{{ page_width|default:"fluid" }}">
|
||||
<div class="container-fluid">
|
||||
|
||||
{# Nav menu toggle #}
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -105,7 +105,7 @@ Blocks:
|
||||
{# Page body #}
|
||||
{% block page %}
|
||||
<div class="page-body my-1">
|
||||
<div class="container-{{ page_width|default:"fluid" }} tab-content py-3">
|
||||
<div class="container-fluid tab-content py-3">
|
||||
|
||||
{# Page content #}
|
||||
{% block content %}{% endblock %}
|
||||
@ -124,7 +124,7 @@ Blocks:
|
||||
|
||||
{# Page footer #}
|
||||
<footer class="footer footer-transparent d-print-none py-2">
|
||||
<div class="container-{{ page_width|default:"fluid" }} d-flex justify-content-between align-items-center">
|
||||
<div class="container-fluid d-flex justify-content-between align-items-center">
|
||||
{% block footer %}
|
||||
|
||||
{# Footer links #}
|
||||
|
@ -5,7 +5,7 @@
|
||||
{{ block.super }}
|
||||
|
||||
{% block page-header %}
|
||||
<div class="container-{{ page_width|default:"fluid" }} mt-2 d-print-none">
|
||||
<div class="container-fluid mt-2 d-print-none">
|
||||
<div class="d-flex justify-content-between">
|
||||
|
||||
{# Title #}
|
||||
@ -29,7 +29,7 @@
|
||||
|
||||
{# Tabs #}
|
||||
<div class="page-tabs mt-3">
|
||||
<div class="container-{{ page_width|default:"fluid" }}">
|
||||
<div class="container-fluid">
|
||||
{% block tabs %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -19,7 +19,7 @@ Context:
|
||||
{% endcomment %}
|
||||
|
||||
{% block page-header %}
|
||||
<div class="container-{{ page_width|default:"fluid" }}">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-between align-items-center mt-2">
|
||||
|
||||
{# Breadcrumbs #}
|
||||
|
Loading…
Reference in New Issue
Block a user