style fixes, bug fixes

This commit is contained in:
Dennis Eichhorn 2023-05-28 01:13:22 +00:00
parent 8558bd4d5d
commit 754d512c3e
3 changed files with 9 additions and 2 deletions

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Types'); ?><i class="fa fa-download floatRight download btn"></i></div>
<div class="portlet-head"><?= $this->getHtml('Types'); ?><i class="lni lni-download download btn end-xs"></i></div>
<div class="slider">
<table id="typeList" class="default sticky">
<thead>

View File

@ -1123,6 +1123,13 @@ final class ApiController extends Controller
}
}
if (!\is_file($media->getAbsolutePath())) {
$this->fillJsonResponse($request, $response, NotificationLevel::ERROR, 'Media', 'Media could not be exported. Please try again.', []);
$response->header->status = RequestStatusCode::R_500;
return;
}
$this->setMediaResponseHeader($media, $request, $response);
$view = $this->createView($media, $request, $response);
$view->setData('path', __DIR__ . '/../../../');

View File

@ -25,7 +25,7 @@ $next = empty($this->media)
: '{%}?{?}&mpivot=' . \end($this->media)->id . '&mptype=n';
?>
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media', 'Media'); ?><i class="fa fa-download floatRight download btn"></i></div>
<div class="portlet-head"><?= $this->getHtml('Media', 'Media'); ?><i class="lni lni-download download btn end-xs"></i></div>
<div class="slider">
<table class="default">
<thead>