mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
12216 color to detail view, add type to svg
This commit is contained in:
parent
846accf37c
commit
1244aa56b0
@ -159,6 +159,7 @@ class CableTraceSVG:
|
|||||||
labels.append(location_label)
|
labels.append(location_label)
|
||||||
elif instance._meta.model_name == 'circuit':
|
elif instance._meta.model_name == 'circuit':
|
||||||
labels[0] = f'Circuit {instance}'
|
labels[0] = f'Circuit {instance}'
|
||||||
|
labels.append(instance.type)
|
||||||
labels.append(instance.provider)
|
labels.append(instance.provider)
|
||||||
if instance.description:
|
if instance.description:
|
||||||
labels.append(instance.description)
|
labels.append(instance.description)
|
||||||
|
@ -29,6 +29,12 @@
|
|||||||
<th scope="row">{% trans "Description" %}</th>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">{% trans "Color" %}</th>
|
||||||
|
<td>
|
||||||
|
<span class="badge color-label" style="background-color: #{{ object.color }}"> </span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user