mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-11 07:38:41 +00:00
update
This commit is contained in:
parent
19102a28af
commit
3c296faa5e
|
|
@ -47,7 +47,7 @@ final class AppController extends ModuleAbstract
|
|||
protected static array $dependencies = [];
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -67,7 +67,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -87,7 +87,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -107,7 +107,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -127,7 +127,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -147,7 +147,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ use phpOMS\Views\View;
|
|||
final class BackendController extends Controller
|
||||
{
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -57,7 +57,7 @@ final class BackendController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -98,7 +98,7 @@ final class BackendController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -142,7 +142,7 @@ final class BackendController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Modules\QA\Models;
|
|||
use phpOMS\Stdlib\Base\Enum;
|
||||
|
||||
/**
|
||||
* Permision state enum.
|
||||
* Permission category enum.
|
||||
*
|
||||
* @package Modules\QA\Models
|
||||
* @license OMS License 2.0
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
|||
return ['QA' => [
|
||||
'All' => 'Alle',
|
||||
'Answer' => 'Antwort',
|
||||
'Answers' => 'Antworten',
|
||||
'Question' => 'Frage',
|
||||
'Vote' => 'Bewerten',
|
||||
'Score' => 'Bewertung',
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
|||
return ['QA' => [
|
||||
'All' => 'All',
|
||||
'Answer' => 'Answer',
|
||||
'Answers' => 'Answers',
|
||||
'Question' => 'Question',
|
||||
'Vote' => 'Vote',
|
||||
'Score' => 'Score',
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ echo $this->data['nav']->render();
|
|||
<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"><?= $this->getHtml('Score') ?>: <?= $scores[$question->createdBy->account->id] ?? 0; ?></div>
|
||||
<div class="name-score"><?= $this->getHtml('Score'); ?>: <?= $scores[$question->createdBy->account->id] ?? 0; ?></div>
|
||||
</span>
|
||||
|
||||
<?php if ($question->createdBy->image->id > 0) : ?>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ echo $this->data['nav']->render();
|
|||
</div>
|
||||
<div class="counter-container">
|
||||
<span class="counter score<?= $this->printHtml($question->hasAccepted() ? ' done' : ' open'); ?>"><?= $question->getAnswerCount(); ?></span>
|
||||
<span class="text">Answers</span>
|
||||
<span class="text"><?= $this->getHtml('Answers'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -94,7 +94,7 @@ echo $this->data['nav']->render();
|
|||
<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"><?= $this->getHtml('Score') ?>: <?= $scores[$question->createdBy->account->id] ?? 0; ?></div>
|
||||
<div class="name-score"><?= $this->getHtml('Score'); ?>: <?= $scores[$question->createdBy->account->id] ?? 0; ?></div>
|
||||
</span>
|
||||
|
||||
<?php if ($question->createdBy->image->id > 0) : ?>
|
||||
|
|
@ -149,7 +149,7 @@ echo $this->data['nav']->render();
|
|||
</a>
|
||||
<?php endif; ?>
|
||||
<span class="counter"><?= $answer->getVoteScore(); ?></span>
|
||||
<span class="text">Score</span>
|
||||
<span class="text"><?= $this->getHtml('Score'); ?></span>
|
||||
<?php if ($this->request->header->account !== $answer->createdBy->account->id) : ?>
|
||||
<a id="qa-answer-downvote-<?= $answer->id; ?>" data-action='[
|
||||
{
|
||||
|
|
@ -198,7 +198,7 @@ echo $this->data['nav']->render();
|
|||
<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>
|
||||
<div class="name-score"><?= $this->getHtml('Score'); ?>: <?= $scores[$answer->createdBy->account->id] ?? 0; ?></div>
|
||||
</span>
|
||||
<?php if ($answer->createdBy->image->id > 0) : ?>
|
||||
<img width="40px" alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" loading="lazy" src="<?= UriFactory::build($answer->createdBy->image->getPath()); ?>">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user