Skip to content

Commit 288a1d2

Browse files
Merge pull request #7693 from rhyser9/7668_location_detail_elevation
Closes #7668: Add 'View Elevations' button to location detail page
2 parents 7c05db8 + d528614 commit 288a1d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

netbox/templates/dcim/location.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ <h5 class="card-header">
2121
<tr>
2222
<th scope="row">Name</th>
2323
<td>{{ object.name }}</td>
24+
<td></td>
2425
</tr>
2526
<tr>
2627
<th scope="row">Description</th>
2728
<td>{{ object.description|placeholder }}</td>
29+
<td></td>
2830
</tr>
2931
<tr>
3032
<th scope="row">Site</th>
3133
<td><a href="{{ object.site.get_absolute_url }}">{{ object.site }}</a></td>
34+
<td></td>
3235
</tr>
3336
<tr>
3437
<th scope="row">Parent</th>
@@ -39,18 +42,25 @@ <h5 class="card-header">
3942
<span class="text-muted">&mdash;</span>
4043
{% endif %}
4144
</td>
45+
<td></td>
4246
</tr>
4347
<tr>
4448
<th scope="row">Racks</th>
4549
<td>
4650
<a href="{% url 'dcim:rack_list' %}?location_id={{ object.pk }}">{{ rack_count }}</a>
4751
</td>
52+
<td class="noprint text-end">
53+
<a href="{% url 'dcim:rack_elevation_list' %}?location_id={{ object.pk }}" class="btn btn-sm btn-primary" title="View Elevations">
54+
<i class="mdi mdi-server"></i>
55+
</a>
56+
</td>
4857
</tr>
4958
<tr>
5059
<th scope="row">Devices</th>
5160
<td>
5261
<a href="{% url 'dcim:device_list' %}?location_id={{ object.pk }}">{{ device_count }}</a>
5362
</td>
63+
<td></td>
5464
</tr>
5565
</table>
5666
</div>

0 commit comments

Comments
 (0)