فهرست منبع

fix prefix table styles

checktheroads 5 سال پیش
والد
کامیت
21d31b5747

+ 1 - 1
netbox/ipam/tables.py

@@ -11,7 +11,7 @@ from utilities.tables import (
 from virtualization.models import VMInterface
 from virtualization.models import VMInterface
 from .models import Aggregate, IPAddress, Prefix, RIR, Role, RouteTarget, Service, VLAN, VLANGroup, VRF
 from .models import Aggregate, IPAddress, Prefix, RIR, Role, RouteTarget, Service, VLAN, VLANGroup, VRF
 
 
-AVAILABLE_LABEL = mark_safe('<span class="label label-success">Available</span>')
+AVAILABLE_LABEL = mark_safe('<span class="badge bg-success">Available</span>')
 
 
 PREFIX_LINK = """
 PREFIX_LINK = """
 {% load helpers %}
 {% load helpers %}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
netbox/project-static/dist/netbox.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
netbox/project-static/dist/netbox.css.map


+ 4 - 0
netbox/project-static/netbox.scss

@@ -351,3 +351,7 @@ i.bi-plus:before,
 span.bi-plus:before {
 span.bi-plus:before {
   font-weight: $font-weight-bold !important;
   font-weight: $font-weight-bold !important;
 }
 }
+
+table tbody tr.success {
+  background-color: rgba($success, 0.15);
+}

+ 0 - 1
netbox/templates/ipam/aggregate.html

@@ -12,7 +12,6 @@
 
 
 {% block extra_controls %}
 {% block extra_controls %}
   {% include 'ipam/inc/toggle_available.html' %}
   {% include 'ipam/inc/toggle_available.html' %}
-  {% comment %} {{ block.super }} {% endcomment %}
 {% endblock %}
 {% endblock %}
 
 
 {% block content %}
 {% block content %}

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است