File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,14 @@ table.report th a {
457457 width : 80px ;
458458 border : 1px solid grey;
459459}
460+ .inline-color-block {
461+ display : inline-block;
462+ width : 1.5em ;
463+ height : 1.5em ;
464+ border : 1px solid grey;
465+ border-radius : .25em ;
466+ vertical-align : middle;
467+ }
460468.text-nowrap {
461469 white-space : nowrap;
462470}
Original file line number Diff line number Diff line change 4848 < td class ="text-nowrap ">
4949 {% if iface.cable %}
5050 < a href ="{{ iface.cable.get_absolute_url }} "> {{ iface.cable }}</ a >
51+ {% if iface.cable.color %}
52+ < span class ="inline-color-block " style ="background-color: #{{ iface.cable.color }} "> </ span >
53+ {% endif %}
5154 < a href ="{% url 'dcim:interface_trace' pk=iface.pk %} " class ="btn btn-primary btn-xs " title ="Trace ">
5255 < i class ="fa fa-share-alt " aria-hidden ="true "> </ i >
5356 </ a >
You can’t perform that action at this time.
0 commit comments