{% load helpers %}
<div class="rack_header">
    <strong><a href="{% url 'dcim:rack' pk=rack.pk %}">{{ rack.name }}</a></strong>
    {% if rack.role %}
        <br /><small class="label" style="color: {{ rack.role.color|fgcolor }}; background-color: #{{ rack.role.color }}">{{ rack.role }}</small>
    {% endif %}
    {% if rack.facility_id %}
        <br /><small class="text-muted">{{ rack.facility_id }}</small>
    {% endif %}
</div>
