continue implementation

This commit is contained in:
Dennis Eichhorn 2023-06-09 17:39:31 +00:00
parent 772b384c27
commit 5093fb7ed0
3 changed files with 5 additions and 4 deletions

View File

@ -75,6 +75,7 @@ final class BackendController extends Controller
$list = QAQuestionMapper::getAll()
->with('createdBy')
->with('createdBy/account')
->with('createdBy/image')
->with('votes')
->with('answers')
->with('answers/votes')

View File

@ -50,7 +50,7 @@ echo $this->data['nav']->render(); ?>
</div>
</div>
<div class="title">
<a href="<?= UriFactory::build('{/base}/qa/question?{?}&id=' . $question->id); ?>"><?= $this->printHtml($question->name); ?></a>
<a href="<?= UriFactory::build('{/app}/qa/question?{?}&id=' . $question->id); ?>"><?= $this->printHtml($question->name); ?></a>
</div>
</div>
</div>
@ -61,10 +61,10 @@ echo $this->data['nav']->render(); ?>
<?php endforeach; ?>
</div>
<a class="account-info" href="<?= UriFactory::build('{/base}/profile/single?{?}&id=' . $question->createdBy->id); ?>">
<a class="account-info" href="<?= UriFactory::build('{/app}/profile/single?{?}&id=' . $question->createdBy->id); ?>">
<span class="name content"><?= $this->printHtml($question->createdBy->account->name2); ?> <?= $this->printHtml($question->createdBy->account->name1); ?></span>
<?php if ($question->createdBy->image->id > 0) : ?>
<img width="40px" alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" loading="lazy" src="<?= UriFactory::build('{/base}/' . $question->createdBy->image->getPath()); ?>">
<img width="40px" alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" loading="lazy" src="<?= UriFactory::build($question->createdBy->image->getPath()); ?>">
<?php endif; ?>
</a>
</div>

View File

@ -23,7 +23,7 @@ echo $this->data['nav']->render();
<div class="box wf-100">
<div class="slider">
<table class="default sticky">
<caption><?= $this->getHtml('Badges'); ?><i class="fa fa-download floatRight download btn"></i></caption>
<caption><?= $this->getHtml('Badges'); ?><i class="fa fa-download end-xs download btn"></i></caption>
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>