Skip to content

Commit 4a22b03

Browse files
author
wrongecho
committed
Global search - assets
When global search returns an asset, include a hyperlink to the asset details as part of the asset name
1 parent 5ebf797 commit 4a22b03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

global_search.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,9 @@
745745
?>
746746
<tr>
747747
<td>
748-
<i class="fa fa-fw text-secondary fa-<?php echo $device_icon; ?> mr-2"></i><?php echo $asset_name; ?>
748+
<i class="fa fa-fw text-secondary fa-<?php echo $device_icon; ?> mr-2"></i><a href="asset_details.php?client_id=<?php echo $client_id; ?>&asset_id=<?php echo $asset_id; ?>"><?php echo $asset_name; ?></a>
749749
<?php if(!empty($asset_uri)){ ?>
750-
<a href="<?php echo $asset_uri; ?>" target="_blank"><i class="fas fa-fw fa-external-link-alt ml-2"></i></a>
750+
<a href="<?php echo $asset_uri; ?>" target="_blank"><i class="fas fa-fw fa-external-link-alt ml-2"></i></a>
751751
<?php } ?>
752752
</td>
753753
<td><?php echo $asset_type; ?></td>

0 commit comments

Comments
 (0)