瀏覽代碼

Clever icon thing

Jeremy Stretch 7 年之前
父節點
當前提交
4ad7882762
共有 2 個文件被更改,包括 2 次插入2 次删除
  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 #}
         <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>
 
         {# Type #}

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

@@ -10,7 +10,7 @@
 
         {# Name #}
         <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>
 
         {# Type #}