A free open source IT asset/license management system
Updated formatters to use tag_color if given
snipe83e446f99cfe
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 1c4a1ae44f..d8aab9efd4 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -904,8 +904,15 @@// This only works for model index pages because it uses the row's model IDfunction genericRowLinkFormatter(destination) {return function (value,row) {++ if ((row) && (row.tag_color) && (row.tag_color!='') && (row.tag_color!=undefined)) {+ var tag_icon = '<i class="fa-solid fa-square" style="color: ' + row.tag_color + ';" aria-hidden="true"></i> ';+ } else {+ var tag_icon = '';+ }+if (value) {- return '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '">' + value + '</a>';+ return tag_icon + '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '">' + value + '</a>';}};}