Fixes #6778: Rack reservation should display rack's location

This commit is contained in:
jeremystretch
2021-07-21 15:44:14 -04:00
parent 5d62586705
commit 79f3eb4fb7
2 changed files with 4 additions and 3 deletions

View File

@@ -39,10 +39,10 @@
</td>
</tr>
<tr>
<td>Group</td>
<td>Location</td>
<td>
{% if rack.group %}
<a href="{{ rack.group.get_absolute_url }}">{{ rack.group }}</a>
{% if rack.location %}
<a href="{{ rack.location.get_absolute_url }}">{{ rack.location }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}