Quellcode durchsuchen

Clever icon thing

Jeremy Stretch vor 8 Jahren
Ursprung
Commit
4ad7882762
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      netbox/templates/dcim/inc/frontport.html
  2. 1 1
      netbox/templates/dcim/inc/rearport.html

+ 1 - 1
netbox/templates/dcim/inc/frontport.html

@@ -10,7 +10,7 @@
 
 
         {# Name #}
         {# Name #}
         <td>
         <td>
-            <i class="fa fa-fw fa-square-o"></i> {{ frontport }}
+            <i class="fa fa-fw fa-square{% if not cable %}-o{% endif %}"></i> {{ frontport }}
         </td>
         </td>
 
 
         {# Type #}
         {# Type #}

+ 1 - 1
netbox/templates/dcim/inc/rearport.html

@@ -10,7 +10,7 @@
 
 
         {# Name #}
         {# Name #}
         <td>
         <td>
-            <i class="fa fa-fw fa-square-o"></i> {{ rearport }}
+            <i class="fa fa-fw fa-square{% if not cable %}-o{% endif %}"></i> {{ rearport }}
         </td>
         </td>
 
 
         {# Type #}
         {# Type #}