@if ($fileStorage->is_too_large) File on server exceeds 5 MB and cannot be edited from the UI. Edit it directly on the server. @elseif ($fileStorage->is_host_file) This host file mount is bind-only. MapleDeploy will not create, edit, load, chmod, or delete the source file. {{-- MapleDeploy branding --}} @elseif ($isReadOnly) @if ($fileStorage->is_directory) This directory is mounted as read-only and cannot be modified from the UI. @else This file is mounted as read-only and cannot be modified from the UI. @endif @endif
@if ($hasEnabledBackup) @endif
@if ($resource instanceof \App\Models\Application && $resource->git_based()) @can('update', $resource)
@endcan @endif
@if (!$isReadOnly) @can('update', $resource)
@if ($fileStorage->is_host_file) @elseif ($fileStorage->is_directory) @if ($resource instanceof \App\Models\Application) @endif @else @if (!$fileStorage->is_binary && !$fileStorage->is_too_large) @endif Load from server @endif
@endcan @if (!$fileStorage->is_directory && !$fileStorage->is_host_file) @can('update', $resource) @if (data_get($resource, 'settings.is_preserve_repository_enabled'))
@endif @else @if (data_get($resource, 'settings.is_preserve_repository_enabled'))
@endif @endcan @endif @else {{-- Read-only view --}} @if (!$fileStorage->is_directory && !$fileStorage->is_host_file) @can('update', $resource)
Load from server
@endcan @if (data_get($resource, 'settings.is_preserve_repository_enabled'))
@endif @endif @endif @if ($isReadOnly && $fileStorage->is_directory && $resource instanceof \App\Models\Application) @can('update', $resource)
@endcan @endif