Skip to content

Commit

Permalink
Fixes netbox-community#1236: Truncate rack names in elevations list; …
Browse files Browse the repository at this point in the history
…add facility ID
  • Loading branch information
jeremystretch committed May 30, 2017
1 parent 114fd8e commit ba2a122
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions netbox/templates/dcim/rack_elevation_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ <h1>{% block title %}Rack Elevations{% endblock %}</h1>
{% for rack in page %}
<div style="display: inline-block; width: 266px">
<div class="rack_header">
<h4><a href="{% url 'dcim:rack' pk=rack.pk %}">{{ rack.name }}</a></h4>
<strong><a href="{% url 'dcim:rack' pk=rack.pk %}">{{ rack.name|truncatechars:"25" }}</a></strong>
<p><small class="text-muted">{{ rack.facility_id|truncatechars:"30" }}</small></p>
</div>
{% if face_id %}
{% include 'dcim/inc/rack_elevation.html' with primary_face=rack.get_rear_elevation secondary_face=rack.get_front_elevation face_id=1 %}
Expand All @@ -23,7 +24,8 @@ <h4><a href="{% url 'dcim:rack' pk=rack.pk %}">{{ rack.name }}</a></h4>
{% endif %}
<div class="clearfix"></div>
<div class="rack_header">
<h4><a href="{% url 'dcim:rack' pk=rack.pk %}">{{ rack.name }}</a></h4>
<strong><a href="{% url 'dcim:rack' pk=rack.pk %}">{{ rack.name|truncatechars:"25" }}</a></strong>
<p><small class="text-muted">{{ rack.facility_id|truncatechars:"30" }}</small></p>
</div>
</div>
{% endfor %}
Expand Down

0 comments on commit ba2a122

Please sign in to comment.