Closes #3152: Include direct link to rack elevations on site view

This commit is contained in:
Jeremy Stretch 2019-12-13 10:12:46 -05:00
parent 3b03d68ac7
commit 77e0564d13
2 changed files with 26 additions and 19 deletions

View File

@ -1,5 +1,9 @@
# v2.6.9 (FUTURE) # v2.6.9 (FUTURE)
## Enhancements
* [#3152](https://github.com/netbox-community/netbox/issues/3152) - Include direct link to rack elevations on site view
## Bug Fixes ## Bug Fixes
* [#3749](https://github.com/netbox-community/netbox/issues/3749) - Fix exception on password change page for local users * [#3749](https://github.com/netbox-community/netbox/issues/3749) - Fix exception on password change page for local users

View File

@ -251,25 +251,28 @@
<div class="panel-heading"> <div class="panel-heading">
<strong>Rack Groups</strong> <strong>Rack Groups</strong>
</div> </div>
{% if rack_groups %} <table class="table table-hover panel-body">
<table class="table table-hover panel-body"> {% for rg in rack_groups %}
{% for rg in rack_groups %} <tr>
<tr> <td><i class="fa fa-fw fa-folder-o"></i> <a href="{{ rg.get_absolute_url }}">{{ rg }}</a></td>
<td><i class="fa fa-fw fa-folder-o"></i> <a href="{{ rg.get_absolute_url }}">{{ rg }}</a></td> <td>{{ rg.rack_count }}</td>
<td>{{ rg.rack_count }}</td> <td class="text-right noprint">
<td class="text-right noprint"> <a href="{% url 'dcim:rack_elevation_list' %}?group_id={{ rg.pk }}" class="btn btn-xs btn-primary" title="View elevations">
<a href="{% url 'dcim:rack_elevation_list' %}?group_id={{ rg.pk }}" class="btn btn-xs btn-primary" title="View elevations"> <i class="fa fa-eye"></i>
<i class="fa fa-eye"></i> </a>
</a> </td>
</td> </tr>
</tr> {% endfor %}
{% endfor %} <tr>
</table> <td><i class="fa fa-fw fa-folder-o"></i> All racks</td>
{% else %} <td>{{ stats.rack_count }}</td>
<div class="panel-body text-muted"> <td class="text-right noprint">
None <a href="{% url 'dcim:rack_elevation_list' %}?site={{ site.slug }}" class="btn btn-xs btn-primary" title="View elevations">
</div> <i class="fa fa-eye"></i>
{% endif %} </a>
</td>
</tr>
</table>
</div> </div>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">