A free open source IT asset/license management system
Added formatter back
snipe80b48101aad6
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 5a0833fa43..cf6be7bfbf 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -953,6 +953,13 @@}+ function fileUploadFormatter(value) {+ if ((value) && (value.url) && (value.inlineable)) {+ return '<a href="' + value.url + '" data-toggle="lightbox" data-type="image"><img src="' + value.url + '" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive" alt=""></a>';+ } else if ((value) && (value.url)) {+ return '<a href="' + value.url + '" class="btn btn-default"><x-icon type="download" /></a>';+ }+ }// This is used in the table listings