mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-11 15:48:42 +00:00
fix bugs
This commit is contained in:
parent
fd2ccee594
commit
780f52186f
|
|
@ -50,7 +50,7 @@ echo $this->data['nav']->render(); ?>
|
|||
</div>
|
||||
</div>
|
||||
<div class="title">
|
||||
<a href="<?= UriFactory::build('{/app}/qa/question?{?}&id=' . $question->id); ?>"><?= $this->printHtml($question->name); ?></a>
|
||||
<a href="<?= UriFactory::build('{/base}/qa/question?{?}&id=' . $question->id); ?>"><?= $this->printHtml($question->name); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -59,11 +59,11 @@ echo $this->data['nav']->render(); ?>
|
|||
<?php $tags = $question->getTags(); foreach ($tags as $tag) :
|
||||
if ($tag->id === 0) { continue; }
|
||||
?>
|
||||
<span class="tag"><?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<span class="tag"><?= empty($tag->icon) ? '' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<a class="account-info" href="<?= UriFactory::build('{/app}/profile/single?{?}&id=' . $question->createdBy->id); ?>">
|
||||
<a class="account-info" href="<?= UriFactory::build('{/base}/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($question->createdBy->image->getPath()); ?>">
|
||||
|
|
|
|||
|
|
@ -73,15 +73,15 @@ echo $this->data['nav']->render();
|
|||
foreach ($tags as $tag) :
|
||||
if ($tag->id === 0) { continue; }
|
||||
?>
|
||||
<span class="tag"><?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<span class="tag"><?= empty($tag->icon) ? '' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<?php $files = $question->getMedia(); foreach ($files as $file) : ?>
|
||||
<span><a class="content" href="<?= UriFactory::build('{/app}/media/single?id=' . $file->id);?>"><?= $file->name; ?></a></span>
|
||||
<span><a class="content" href="<?= UriFactory::build('{/base}/media/single?id=' . $file->id);?>"><?= $file->name; ?></a></span>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<a class="account-info" href="<?= UriFactory::build('{/app}/profile/single?{?}&id=' . $question->createdBy->id); ?>">
|
||||
<a class="account-info" href="<?= UriFactory::build('{/base}/profile/single?{?}&id=' . $question->createdBy->id); ?>">
|
||||
<span class="name">
|
||||
<div class="content"><?= $this->printHtml($question->createdBy->account->name2); ?> <?= $this->printHtml($question->createdBy->account->name1); ?></div>
|
||||
<div class="name-score">Score: <?= $scores[$question->createdBy->account->id] ?? 0; ?></div>
|
||||
|
|
@ -150,10 +150,10 @@ echo $this->data['nav']->render();
|
|||
</div>
|
||||
<div class="portlet-foot qa-portlet-foot">
|
||||
<?php $files = $answer->getMedia(); foreach ($files as $file) : ?>
|
||||
<span><a class="content" href="<?= UriFactory::build('{/app}/media/single?id=' . $file->id);?>"><?= $file->name; ?></a></span>
|
||||
<span><a class="content" href="<?= UriFactory::build('{/base}/media/single?id=' . $file->id);?>"><?= $file->name; ?></a></span>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<a class="account-info" href="<?= UriFactory::build('{/app}/profile/single?{?}&id=' . $answer->createdBy->id); ?>">
|
||||
<a class="account-info" href="<?= UriFactory::build('{/base}/profile/single?{?}&id=' . $answer->createdBy->id); ?>">
|
||||
<span class="name">
|
||||
<div class="content"><?= $this->printHtml($answer->createdBy->account->name2); ?> <?= $this->printHtml($answer->createdBy->account->name1); ?></div>
|
||||
<div class="name-score">Score: <?= $scores[$answer->createdBy->account->id] ?? 0; ?></div>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
.qa .qa-accept {
|
||||
font-size: 2rem;
|
||||
font-weight: 200;
|
||||
color: #ccc;
|
||||
cursor: pointer; }
|
||||
.qa .accepted .qa-accept {
|
||||
|
|
@ -33,6 +34,7 @@
|
|||
border-top: 3px solid #81e27d; }
|
||||
.qa .qa-vote {
|
||||
font-size: 2rem;
|
||||
font-weight: 200;
|
||||
color: #ccc;
|
||||
cursor: pointer; }
|
||||
.qa .qa-vote.voted {
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
.qa {
|
||||
.qa-accept {
|
||||
font-size: 2rem;
|
||||
font-weight: 200;
|
||||
color: #ccc;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
@ -58,6 +59,7 @@
|
|||
|
||||
.qa-vote {
|
||||
font-size: 2rem;
|
||||
font-weight: 200;
|
||||
color: #ccc;
|
||||
cursor: pointer;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user