mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-16 17:28:41 +00:00
File/report bug fixes
This commit is contained in:
parent
e3ea9216f4
commit
66e13b9459
|
|
@ -19,6 +19,7 @@ return ['Media' => [
|
||||||
'Creator' => 'Creator',
|
'Creator' => 'Creator',
|
||||||
'Data' => 'Data',
|
'Data' => 'Data',
|
||||||
'Description' => 'Description',
|
'Description' => 'Description',
|
||||||
|
'Edit' => 'Edit',
|
||||||
'Editability' => 'Editability',
|
'Editability' => 'Editability',
|
||||||
'Extension' => 'Extension',
|
'Extension' => 'Extension',
|
||||||
'Files' => 'Files',
|
'Files' => 'Files',
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,11 @@ echo $this->getData('nav')->render();
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<table class="list w-100">
|
<table class="list w-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td>Name<td class="wf-100"><?= $this->printHtml($media->getName()); ?>
|
<tr><td><?= $this->getHtml('Name') ?><td class="wf-100"><?= $this->printHtml($media->getName()); ?>
|
||||||
<tr><td>Size<td class="wf-100"><?= $this->printHtml($media->getSize()); ?>
|
<tr><td><?= $this->getHtml('Size') ?><td class="wf-100"><?= $this->printHtml($media->getSize()); ?>
|
||||||
<tr><td>Created at<td><?= $this->printHtml($media->getCreatedAt()->format('Y-m-d')); ?>
|
<tr><td><?= $this->getHtml('Created') ?><td><?= $this->printHtml($media->getCreatedAt()->format('Y-m-d')); ?>
|
||||||
<tr><td>Created by<td><?= $this->printHtml($media->getCreatedBy()->getName1()); ?>
|
<tr><td><?= $this->getHtml('Creator') ?><td><?= $this->printHtml($media->getCreatedBy()->getName1()); ?>
|
||||||
<tr><td>Description<td><?= $this->printHtml($media->getDescription()); ?>
|
<tr><td><?= $this->getHtml('Description') ?><td><?= $this->printHtml($media->getDescription()); ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -61,10 +61,10 @@ echo $this->getData('nav')->render();
|
||||||
<td><?= $this->getHtml('Creator') ?>
|
<td><?= $this->getHtml('Creator') ?>
|
||||||
<td><?= $this->getHtml('Created') ?>
|
<td><?= $this->getHtml('Created') ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
if (!is_dir($media->isAbsolute() ? $path : __DIR__ . '/../../../' . \ltrim($media->getPath(), '//'))
|
if (!is_dir($media->isAbsolute() ? $path : __DIR__ . '/../../../' . \ltrim($media->getPath(), '//'))
|
||||||
|| $media->getPath() === ''
|
|| $media->getPath() === ''
|
||||||
) :
|
) :
|
||||||
foreach ($media as $key => $value) :
|
foreach ($media as $key => $value) :
|
||||||
$url = UriFactory::build('/{/lang}/backend/media/single?{?}&id=' . $value->getId());
|
$url = UriFactory::build('/{/lang}/backend/media/single?{?}&id=' . $value->getId());
|
||||||
$icon = $fileIconFunction(FileUtils::getExtensionType($value->getExtension()));
|
$icon = $fileIconFunction(FileUtils::getExtensionType($value->getExtension()));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user