mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-11 15:48:42 +00:00
Went through todos
This commit is contained in:
parent
0d764d70bf
commit
9954e59224
|
|
@ -60,8 +60,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @todo Create another notification whenever a comment is created for a question or answer
|
||||
* The question/answer owner should receive a notification
|
||||
* @performance This should happen in the cli if possible?
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -78,6 +78,10 @@ class QAAnswer implements \JsonSerializable
|
|||
/**
|
||||
* Created by.
|
||||
*
|
||||
* @todo Answers and questions reference a profile.
|
||||
* This goes against almost every other model. Use the account instead.
|
||||
* https://github.com/Karaka-Management/oms-QA/issues/8
|
||||
*
|
||||
* @var Profile
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ class QAQuestion implements \JsonSerializable
|
|||
/**
|
||||
* Created by.
|
||||
*
|
||||
* @todo Answers and questions reference a profile.
|
||||
* This goes against almost every other model. Use the account instead.
|
||||
* https://github.com/Karaka-Management/oms-QA/issues/8
|
||||
*
|
||||
* @var Profile
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ echo $this->data['nav']->render();
|
|||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "event.prevent"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= UriFactory::build('{/api}qa/question/vote?id=' . $question->id);?>&type=1", "method": "PUT", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.reload", "delay": 0}
|
||||
{"key": 3, "type": "redirect", "uri": "{%}", "delay": 0}
|
||||
]
|
||||
}
|
||||
]' href="#">
|
||||
|
|
@ -53,7 +53,7 @@ echo $this->data['nav']->render();
|
|||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "event.prevent"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= UriFactory::build('{/api}qa/question/vote?id=' . $question->id);?>&type=-1", "method": "PUT", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.reload", "delay": 0}
|
||||
{"key": 3, "type": "redirect", "uri": "{%}", "delay": 0}
|
||||
]
|
||||
}
|
||||
]' href="#">
|
||||
|
|
@ -143,7 +143,7 @@ echo $this->data['nav']->render();
|
|||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "event.prevent"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= UriFactory::build('{/api}qa/answer/vote?id=' . $answer->id);?>&type=1", "method": "PUT", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.reload", "delay": 0}
|
||||
{"key": 3, "type": "redirect", "uri": "{%}", "delay": 0}
|
||||
]
|
||||
}
|
||||
]' href="#">
|
||||
|
|
@ -158,7 +158,7 @@ echo $this->data['nav']->render();
|
|||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "event.prevent"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= UriFactory::build('{/api}qa/answer/vote?id=' . $answer->id);?>&type=-1", "method": "PUT", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.reload", "delay": 0}
|
||||
{"key": 3, "type": "redirect", "uri": "{%}", "delay": 0}
|
||||
]
|
||||
}
|
||||
]' href="#">
|
||||
|
|
@ -173,7 +173,7 @@ echo $this->data['nav']->render();
|
|||
"key": 1, "listener": "click", "action": [
|
||||
{"key": 1, "type": "event.prevent"},
|
||||
{"key": 2, "type": "message.request", "uri": "<?= UriFactory::build('{/api}qa/answer/accept?id=' . $answer->id);?>&type=1", "method": "PUT", "request_type": "json"},
|
||||
{"key": 3, "type": "dom.reload", "delay": 0}
|
||||
{"key": 3, "type": "redirect", "uri": "{%}", "delay": 0}
|
||||
]
|
||||
}
|
||||
]' href="#">
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ echo $this->data['nav']->render();
|
|||
<tr><td colspan="2">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($this->data['tags'] as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/admin/account/settings?{?}&id=' . $value->id); ?>
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/admin/account/view?{?}&id=' . $value->id); ?>
|
||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user