mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes #4057 - sig file in lightbox
This commit is contained in:
parent
a7ad48a02a
commit
3d7277398c
|
@ -52,8 +52,8 @@ class ActionlogsTransformer
|
|||
'type' => e($actionlog->targetType()),
|
||||
] : null,
|
||||
|
||||
'note' => e($actionlog->note),
|
||||
'signature_file' => ($actionlog->accept_signature) ? $actionlog->accept_signature : null,
|
||||
'note' => ($actionlog->note) ? e($actionlog->note): null,
|
||||
'signature_file' => ($actionlog->accept_signature) ? route('log.signature.view', ['filename' => $actionlog->accept_signature ]) : null,
|
||||
|
||||
|
||||
];
|
||||
|
|
|
@ -358,7 +358,7 @@ $('.snipe-table').bootstrapTable({
|
|||
|
||||
function imageFormatter(value, row) {
|
||||
if (value) {
|
||||
return '<img src="' + value + '" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" data-toggle="lightbox" data-type="image">';
|
||||
return '<a href="' + value + '" data-toggle="lightbox" data-type="image"><img src="' + value + '" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive"></a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue