mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
* Fix image path for Model view * Fix URLs for images in account view * Fix Supplier view Image URL
This commit is contained in:
parent
daf6d98a3b
commit
55cbbf2b00
|
@ -67,10 +67,10 @@ View Assets for {{ $user->present()->fullName() }}
|
|||
<td>{{ $asset->serial }}</td>
|
||||
<td>
|
||||
@if (($asset->image) && ($asset->image!=''))
|
||||
<img src="{{ url('/') }}/uploads/assets/{{ $asset->image }}" height="50" width="50">
|
||||
<img src="{{ Storage::disk('public')->url(app('assets_upload_path').e($asset->image)) }}" height="50" width="50">
|
||||
|
||||
@elseif (($asset->model) && ($asset->model->image!=''))
|
||||
<img src="{{ url('/') }}/uploads/models/{{ $asset->model->image }}" height="50" width="50">
|
||||
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" height="50" width="50">
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
<div class="box-body">
|
||||
|
||||
@if ($model->image)
|
||||
<img src="{{ url('/') }}/uploads/models/{{ $model->image }}" class="img-responsive"></li>
|
||||
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($model->image)) }}" class="img-responsive"></li>
|
||||
@endif
|
||||
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@
|
|||
</ul>
|
||||
@if ($supplier->image!='')
|
||||
<div class="col-md-12 text-center" style="padding-bottom: 20px;">
|
||||
<img src="{{ app('suppliers_upload_url') }}/{{ $supplier->image }}" class="img-responsive img-thumbnail" alt="{{ $supplier->name }}">
|
||||
<img src="{{ Storage::disk('public')->url(app('suppliers_upload_url').e($supplier->image)) }}" class="img-responsive img-thumbnail" alt="{{ $supplier->name }}">
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue