Преглед изворни кода

Closes #3430: Linkify platform field on device view

Jeremy Stretch пре 6 година
родитељ
комит
f56a0aebdb
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      netbox/templates/dcim/device.html

+ 1 - 0
CHANGELOG.md

@@ -12,6 +12,7 @@ v2.6.3 (FUTURE)
 * [#3391](https://github.com/netbox-community/netbox/issues/3391) - Update Bootstrap CSS to v3.4.1
 * [#3405](https://github.com/netbox-community/netbox/issues/3405) - Fix population of power port/outlet details on device creation
 * [#3422](https://github.com/netbox-community/netbox/issues/3422) - Prevent navigation menu from overlapping page content
+* [#3430](https://github.com/netbox-community/netbox/issues/3430) - Linkify platform field on device view
 
 ---
 

+ 1 - 1
netbox/templates/dcim/device.html

@@ -239,7 +239,7 @@
                         <td>Platform</td>
                         <td>
                             {% if device.platform %}
-                                <span>{{ device.platform }}</span>
+                               <a href="{{ device.platform.get_absolute_url }}">{{ device.platform }}</a>
                             {% else %}
                                 <span class="text-muted">None</span>
                             {% endif %}