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;">
|
2020-04-18 18:25:43 +01:00
|
|
|
<a href="{{ route('storage.edit', ['storage' => $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
|
2020-04-20 22:33:42 +01:00
|
|
|
@if ($storage->source == 'OpenStackSource'){{ $storage->container_name }} · {{ $storage->service_name }}, {{ $storage->service_region }}@endif
|
2020-04-18 21:51:28 +01:00
|
|
|
@if ($storage->source == 'AmazonS3Source')
|
2020-04-20 22:33:42 +01:00
|
|
|
{{ $storage->container_name }} · {{ $storage->service_region }}
|
2020-04-18 21:51:28 +01:00
|
|
|
@if ($storage->s3_signed_urls)
|
|
|
|
<i class="fa fa-key ml-2" data-toggle="tooltip" title="@lang('admin.storage_s3_signed_urls_tooltip')"></i>
|
|
|
|
@endif
|
|
|
|
@endif
|
2020-04-20 22:33:42 +01:00
|
|
|
@if ($storage->source == 'RackspaceSource'){{ $storage->container_name }} · {{ $storage->service_region }}@endif
|
|
|
|
@if ($storage->source == 'DropboxSource')
|
|
|
|
@if (empty($storage->access_token))
|
|
|
|
<a href="{{ route('storage.authoriseService', ['storage' => $storage->id]) }}" class="text-danger"><b>@lang('admin.storage_authorise_external_service_required')</b></a>
|
|
|
|
@else
|
|
|
|
<span class="text-success">@lang('admin.storage_authorise_external_service_authorised')</span> · <a href="{{ route('storage.authoriseService', ['storage' => $storage->id]) }}">@lang('admin.storage_authorise_external_service_refresh_authentication')</a>
|
|
|
|
@endif
|
|
|
|
@endif
|
2016-11-03 13:33:35 +00:00
|
|
|
</span>
|
2016-09-24 09:34:08 +01:00
|
|
|
</td>
|
2020-04-20 22:33:42 +01:00
|
|
|
<p></p>
|
2016-09-24 09:34:08 +01:00
|
|
|
<td class="text-right">
|
2016-10-27 11:36:37 +01:00
|
|
|
@if (!$storage->is_internal)
|
2020-04-18 18:25:43 +01:00
|
|
|
<a href="{{ route('storage.delete', ['storage' => $storage->id]) }}" class="btn btn-danger">@lang('forms.delete_action')</a>
|
2016-10-27 11:36:37 +01:00
|
|
|
@endif
|
2016-09-24 09:34:08 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
{{ $storageLocations->links() }}
|
|
|
|
</div>
|
|
|
|
|
2020-04-19 15:31:48 +01:00
|
|
|
<div class="text-right" style="margin-top: 10px;">
|
2016-09-24 09:34:08 +01:00
|
|
|
<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>
|
2020-04-19 15:31:48 +01:00
|
|
|
@endsection
|