@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 ($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 ($resource instanceof \App\Models\Application) @can('update', $resource)
@endcan @endif
@if (!$isReadOnly) @can('update', $resource)
@if ($fileStorage->is_directory) @else @if (!$fileStorage->is_binary && !$fileStorage->is_too_large) @endif Load from server @endif
@endcan @if (!$fileStorage->is_directory) @can('update', $resource) @if (data_get($resource, 'settings.is_preserve_repository_enabled'))
@endif @if (!$fileStorage->is_based_on_git && !$fileStorage->is_binary && !$fileStorage->is_too_large) Save @endif @else @if (data_get($resource, 'settings.is_preserve_repository_enabled'))
@endif @endcan @endif @else {{-- Read-only view --}} @if (!$fileStorage->is_directory) @can('view', $resource)
Load from server
@endcan @if (data_get($resource, 'settings.is_preserve_repository_enabled'))
@endif @endif @endif