Jeremy Stretch 5 роки тому
батько
коміт
5db14f9410

+ 1 - 1
netbox/dcim/tables/template_code.py

@@ -164,7 +164,7 @@ INTERFACE_BUTTONS = """
 {% elif record.is_connectable and perms.dcim.add_cable %}
     <span class="dropdown">
         <button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
-            <span class="mdi mdi-lan-connect" aria-hidden="true"></span>
+            <span class="mdi mdi-ethernet-cable" aria-hidden="true"></span>
         </button>
         <ul class="dropdown-menu dropdown-menu-right">
             <li><a href="{% url 'dcim:interface_connect' termination_a_id=record.pk termination_b_type='interface' %}?return_url={{ device.get_absolute_url }}">Interface</a></li>

+ 11 - 8
netbox/project-static/css/base.css

@@ -120,9 +120,6 @@ footer p {
 }
 
 /* Navigation menu */
-li.subnav > a {
-    padding-left: 30px;
-}
 ul.dropdown-menu {
     width: 250px;
 }
@@ -354,11 +351,15 @@ textarea {
 /* MDI icons */
 .mdi::before {
     font-size: 20px;
-    line-height: 14px;
+    line-height: 20px;
+    position: relative;
+    top: 2px;
 }
 .btn .mdi::before {
+    font-size: 20px;
+    line-height: 14px;
     position: relative;
-    top: 4px;
+    top: 2px;
 }
 .btn-xs .mdi::before {
     font-size: 18px;
@@ -373,12 +374,11 @@ textarea {
 }
 .dropdown-menu .mdi::before {
     position: relative;
-    top: 4px;
-    left: -8px;
 }
 .nav .mdi::before {
+    left: -2px;
     position: relative;
-    top: 4px;
+    top: 2px;
 }
 .navbar .navbar-toggle .mdi::before {
     position: relative;
@@ -404,6 +404,9 @@ textarea {
     position: relative;
     top: 3px;
 }
+.input-group-btn .mdi::before {
+    font-size: 20px;
+}
 .navbar-brand .mdi::before {
     position: relative;
     top: 2px;

+ 3 - 3
netbox/templates/home.html

@@ -305,11 +305,11 @@
                         {% with action=change.get_action_display|lower %}
                             <div class="list-group-item">
                                 {% if action == 'created' %}
-                                    <span class="label label-success"><i class="mdi mdi-plus-thick"></i></span>
+                                    <span class="label label-success">Created</span>
                                 {% elif action == 'updated' %}
-                                    <span class="label label-warning"><i class="mdi mdi-pencil"></i></span>
+                                    <span class="label label-warning">Modified</span>
                                 {% elif action == 'deleted' %}
-                                    <span class="label label-danger"><i class="mdi mdi-trash-can-outline"></i></span>
+                                    <span class="label label-danger">Deleted</span>
                                 {% endif %}
                                 {{ change.changed_object_type.name|bettertitle }}
                                 {% if change.changed_object.get_absolute_url %}