mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-11 15:48:42 +00:00
bug fixes + file links in various modules
This commit is contained in:
parent
5751295eb8
commit
f7f3591c69
|
|
@ -16,6 +16,7 @@ namespace Modules\QA\Models;
|
|||
|
||||
use Modules\Profile\Models\NullProfile;
|
||||
use Modules\Profile\Models\Profile;
|
||||
use Modules\Media\Models\Media;
|
||||
|
||||
/**
|
||||
* Answer class.
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ namespace Modules\QA\Models;
|
|||
use Modules\Profile\Models\NullProfile;
|
||||
use Modules\Profile\Models\Profile;
|
||||
use Modules\Tag\Models\Tag;
|
||||
use Modules\Media\Models\Media;
|
||||
|
||||
/**
|
||||
* QA question class.
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ echo $this->getData('nav')->render();
|
|||
</div>
|
||||
|
||||
<?php $files = $question->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; ?>
|
||||
|
||||
<a class="account-info" href="<?= UriFactory::build('{/prefix}profile/single?{?}&id=' . $question->createdBy->getId()); ?>">
|
||||
|
|
@ -102,7 +102,7 @@ echo $this->getData('nav')->render();
|
|||
</div>
|
||||
<div class="portlet-foot qa-portlet-foot">
|
||||
<?php $files = $answer->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; ?>
|
||||
|
||||
<a class="account-info" href="<?= UriFactory::build('{/prefix}profile/single?{?}&id=' . $answer->createdBy->getId()); ?>">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user