mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #12112: Do not link data source URL for local paths
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<table class="table table-hover attr-table">
|
||||
<tr>
|
||||
<th scope="row">Source</th>
|
||||
<td><a href="{{ object.source.get_absolute_url }}">{{ object.source }}</a></td>
|
||||
<td>{{ object.source|linkify }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Path</th>
|
||||
|
@@ -57,7 +57,11 @@
|
||||
<tr>
|
||||
<th scope="row">URL</th>
|
||||
<td>
|
||||
<a href="{{ object.source_url }}">{{ object.source_url }}</a>
|
||||
{% if not object.is_local %}
|
||||
<a href="{{ object.source_url }}">{{ object.source_url }}</a>
|
||||
{% else %}
|
||||
{{ object.source_url }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user