Merge branch 'develop' of https://github.com/snipe/snipe-it into develop

This commit is contained in:
snipe 2019-03-08 16:24:12 -08:00
commit 400907cc40
4 changed files with 5 additions and 42 deletions

View file

@ -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>

View file

@ -317,44 +317,7 @@
success: function (data) {
var myPieChart = new Chart(ctx,{
type : 'doughnut',
data : {
"labels": [
"Ready to Deploy (1,273)",
"Pending (50)",
"Archived (50)"
],
"datasets": [
{
"data": [
1273,
50,
50,
],
"backgroundColor": [
"#f56954",
"#00a65a",
"#f39c12",
"#00c0ef",
"#3c8dbc",
"#d2d6de",
"#3c8dbc",
"#3c8dbc",
"#3c8dbc"
],
"hoverBackgroundColor": [
"#f56954",
"#00a65a",
"#f39c12",
"#00c0ef",
"#3c8dbc",
"#d2d6de",
"#3c8dbc",
"#3c8dbc",
"#3c8dbc"
]
}
]
},
data : data,
options: pieOptions
});
},

View file

@ -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

View file

@ -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