bug fixes + file links in various modules

This commit is contained in:
Dennis Eichhorn 2021-07-19 21:34:06 +02:00
parent fbc9de3d52
commit 4f2571f1a0
3 changed files with 7 additions and 7 deletions

View File

@ -53,8 +53,8 @@ final class KanbanCardCommentMapper extends DataMapperAbstract
'media' => [
'mapper' => MediaMapper::class,
'table' => 'kanban_card_comment_media',
'external' => 'kanban_card_comment_media_src',
'self' => 'kanban_card_comment_media_dst',
'external' => 'kanban_card_comment_media_dst',
'self' => 'kanban_card_comment_media_src',
],
];

View File

@ -73,8 +73,8 @@ final class KanbanCardMapper extends DataMapperAbstract
'media' => [
'mapper' => MediaMapper::class,
'table' => 'kanban_card_media',
'external' => 'kanban_card_media_src',
'self' => 'kanban_card_media_dst',
'external' => 'kanban_card_media_dst',
'self' => 'kanban_card_media_src',
],
'comments' => [
'mapper' => KanbanCardCommentMapper::class,

View File

@ -35,7 +35,7 @@ $comments = $card->getComments();
</div>
<div class="portlet-foot">
<?php $files = $card->getMedia(); foreach ($files as $file) : ?>
<span class="file"><?= $this->printHtml($file->name); ?></span>
<span><a class="content" href="<?= UriFactory::build('{/prefix}media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?>
</div>
</section>
@ -51,10 +51,10 @@ $comments = $card->getComments();
</div>
<div class="portlet-foot">
<?php $files = $comment->getMedia(); foreach ($files as $file) : ?>
<span class="file"><?= $this->printHtml($file->name); ?></span>
<span><a class="content" href="<?= UriFactory::build('{/prefix}media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?>
</div>
</section>
</div>
</div>
<?php endforeach; ?>
<?php endforeach; ?>