Merge pull request #12324 from snipe/features/add_username_to_asset_list

Added username to display in asset listings
This commit is contained in:
snipe 2023-01-09 16:00:01 -08:00 committed by GitHub
commit 8d35583634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,6 +327,11 @@
item_icon = '';
}
// display the username if it's checked out to a user
if (value.username) {
value.name = value.name + ' (' + value.username + ')';
}
return '<nobr><a href="{{ url('/') }}/' + item_destination +'/' + value.id + '" data-tooltip="true" title="' + value.type + '"><i class="' + item_icon + ' text-{{ $snipeSettings->skin!='' ? $snipeSettings->skin : 'blue' }} "></i> ' + value.name + '</a></nobr>';
} else {