mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-11 15:48:42 +00:00
Fix #13
This commit is contained in:
parent
0595b27b58
commit
cdb2db0fdf
|
|
@ -5,7 +5,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "QA",
|
||||
"uri": "{/base}/{/lang}/backend/qa/dashboard?{?}",
|
||||
"uri": "/{/lang}/backend/qa/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 50,
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "QA",
|
||||
"uri": "{/base}/{/lang}/backend/qa/dashboard?{?}",
|
||||
"uri": "/{/lang}/backend/qa/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/base}/{/lang}/backend/qa/question/create?{?}",
|
||||
"uri": "/{/lang}/backend/qa/question/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Badges",
|
||||
"uri": "{/base}/{/lang}/backend/qa/badge/list?{?}",
|
||||
"uri": "/{/lang}/backend/qa/badge/list?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 10,
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
public function setUpBackend(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
||||
{
|
||||
$head = $response->get('Content')->getData('head');
|
||||
$head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/QA/Theme/Backend/styles.css');
|
||||
$head->addAsset(AssetType::CSS, '/Modules/QA/Theme/Backend/styles.css');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<span class="score<?= $this->printHtml($question->hasAccepted() ? ' done' : ''); ?>"><?= $this->printHtml(count($question->getAnswers())); ?></span>
|
||||
</div>
|
||||
<div class="title col-xs-11">
|
||||
<a href="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/qa/question?{?}&id=' . $question->getId()); ?>"><?= $this->printHtml($question->getName()); ?></a>
|
||||
<a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/qa/question?{?}&id=' . $question->getId()); ?>"><?= $this->printHtml($question->getName()); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ echo $this->getData('nav')->render();
|
|||
<tr><td colspan="2">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($tags as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user