2017-09-10 21:12:57 +01:00
|
|
|
@extends(Theme::viewName('layout'))
|
2016-09-24 09:34:08 +01:00
|
|
|
@section('title', trans('admin.storage_title'))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
2017-03-23 05:55:14 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.storage')</li>
|
2016-09-24 09:34:08 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-03-23 05:55:14 +00:00
|
|
|
<div class="col">
|
2017-02-13 10:36:53 +00:00
|
|
|
<h1>@lang('admin.list_storages_title')</h1>
|
|
|
|
<div class="alert alert-info" style="margin-bottom: 30px;">
|
2017-03-23 05:55:14 +00:00
|
|
|
<i class="fa fa-fw fa-info"></i> @lang('admin.list_storages_intro')
|
2017-02-13 10:36:53 +00:00
|
|
|
</div>
|
|
|
|
|
2016-09-24 09:34:08 +01:00
|
|
|
@if (count($storageLocations) == 0)
|
|
|
|
<div class="text-center">
|
|
|
|
<h4 class="text-danger"><b>@lang('admin.no_storages_title')</b></h4>
|
|
|
|
<p>@lang('admin.no_storages_text')</p>
|
|
|
|
<p>@lang('admin.no_storages_text2')</p>
|
|
|
|
<p style="margin-top: 40px;">
|
|
|
|
<a href="{{ route('storage.create') }}" class="btn btn-lg btn-success">@lang('admin.create_storage')</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<table class="table table-hover table-striped">
|
|
|
|
<tbody>
|
|
|
|
@foreach ($storageLocations as $storage)
|
|
|
|
<tr>
|
|
|
|
<td>
|
2016-10-27 11:36:37 +01:00
|
|
|
<span style="font-size: 1.3em;">
|
2017-03-23 05:55:14 +00:00
|
|
|
<a href="{{ route('storage.edit', ['id' => $storage->id]) }}">{{ $storage->name }}</a>
|
2016-10-27 11:36:37 +01:00
|
|
|
@if ($storage->is_default) <i class="fa fa-fw fa-check text-success"></i>@endif
|
|
|
|
@if (!$storage->is_active) <i class="fa fa-fw fa-minus-circle text-danger"></i>@endif
|
2016-10-28 04:54:38 +01:00
|
|
|
</span><br/>
|
2016-11-03 13:33:35 +00:00
|
|
|
<span style="color: #888; font-style: italic;">
|
|
|
|
@if ($storage->source == 'LocalFilesystemSource'){{ $storage->location }}@endif
|
|
|
|
@if ($storage->source == 'OpenStackSource'){{ $storage->container_name }} - {{ $storage->service_name }}, {{ $storage->service_region }}@endif
|
|
|
|
@if ($storage->source == 'AmazonS3Source'){{ $storage->container_name }} - {{ $storage->service_region }}@endif
|
2016-11-05 09:41:07 +00:00
|
|
|
@if ($storage->source == 'RackspaceSource'){{ $storage->container_name }} - {{ $storage->service_region }}@endif
|
2016-11-03 13:33:35 +00:00
|
|
|
</span>
|
2016-09-24 09:34:08 +01:00
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
2016-10-27 11:36:37 +01:00
|
|
|
@if (!$storage->is_internal)
|
|
|
|
<a href="{{ route('storage.delete', ['id' => $storage->id]) }}" class="btn btn-danger">@lang('forms.delete_action')</a>
|
|
|
|
@endif
|
2016-09-24 09:34:08 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
{{ $storageLocations->links() }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pull-right" style="margin-top: 10px;">
|
|
|
|
<a href="{{ route('storage.create') }}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> @lang('admin.create_storage')</a>
|
|
|
|
</div>
|
2016-10-27 11:36:37 +01:00
|
|
|
|
|
|
|
<div class="clearfix"><!-- --></div>
|
|
|
|
|
|
|
|
<div class="row" style="margin-top: 15px;">
|
|
|
|
<div class="col-sm-6">
|
2017-03-23 05:55:14 +00:00
|
|
|
<div class="card card-outline-info">
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body">
|
2017-03-23 05:55:14 +00:00
|
|
|
<h4 class="card-title">@lang('admin.legend')</h4>
|
|
|
|
<p class="card-text">
|
|
|
|
<i class="fa fa-fw fa-check text-success" style="font-size: 1.3em;"></i> @lang('admin.default_storage_legend')<br/>
|
|
|
|
<i class="fa fa-fw fa-minus-circle text-danger" style="font-size: 1.3em;"></i> @lang('admin.inactive_storage_legend')
|
|
|
|
</p>
|
2016-10-27 11:36:37 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-24 09:34:08 +01:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|