mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-01-11 16:08:41 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
c1364d2137
commit
0639a42883
|
|
@ -231,7 +231,7 @@ final class ApiController extends Controller
|
||||||
->with('inform')
|
->with('inform')
|
||||||
->where('status', ResourceStatus::ACTIVE)
|
->where('status', ResourceStatus::ACTIVE)
|
||||||
->where('checkedAt', (new \DateTime('now'))->sub(new \DateInterval('PT12H')), '<')
|
->where('checkedAt', (new \DateTime('now'))->sub(new \DateInterval('PT12H')), '<')
|
||||||
->execute();
|
->executeGetArray();
|
||||||
|
|
||||||
$changes = $this->checkResources($request, $resources);
|
$changes = $this->checkResources($request, $resources);
|
||||||
$this->informEmail($changes);
|
$this->informEmail($changes);
|
||||||
|
|
@ -259,7 +259,7 @@ final class ApiController extends Controller
|
||||||
$reports = ReportMapper::getAll()
|
$reports = ReportMapper::getAll()
|
||||||
->where('status', ReportStatus::CHANGE)
|
->where('status', ReportStatus::CHANGE)
|
||||||
->where('createdAt', $dateTime, '>=')
|
->where('createdAt', $dateTime, '>=')
|
||||||
->execute();
|
->executeGetArray();
|
||||||
|
|
||||||
$ids = \array_map(
|
$ids = \array_map(
|
||||||
function (Report $report) : int {
|
function (Report $report) : int {
|
||||||
|
|
@ -273,7 +273,7 @@ final class ApiController extends Controller
|
||||||
->with('owner')
|
->with('owner')
|
||||||
->with('owner/l11n')
|
->with('owner/l11n')
|
||||||
->where('id', $ids, 'IN')
|
->where('id', $ids, 'IN')
|
||||||
->execute();
|
->executeGetArray();
|
||||||
|
|
||||||
$this->informEmail($resources);
|
$this->informEmail($resources);
|
||||||
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Inform', 'Users were informed', null);
|
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Inform', 'Users were informed', null);
|
||||||
|
|
@ -306,7 +306,7 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
/** @var \Modules\OnlineResourceWatcher\Models\InformBlacklist[] */
|
/** @var \Modules\OnlineResourceWatcher\Models\InformBlacklist[] */
|
||||||
$blacklist = InformBlacklistMapper::getAll()
|
$blacklist = InformBlacklistMapper::getAll()
|
||||||
->execute();
|
->executeGetArray();
|
||||||
|
|
||||||
foreach ($resources as $resource) {
|
foreach ($resources as $resource) {
|
||||||
$owner = new Inform();
|
$owner = new Inform();
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ $next = $tableView->getNextLink(
|
||||||
<?= $tableView->renderTitle(
|
<?= $tableView->renderTitle(
|
||||||
$this->getHtml('Resources')
|
$this->getHtml('Resources')
|
||||||
); ?>
|
); ?>
|
||||||
<a class="button end-xs save" href="<?= UriFactory::build('{/base}/'); ?>orw/resource/create"><?= $this->getHtml('New', '0', '0'); ?></a>
|
<a class="button end-xs save" href="<?= UriFactory::build('{/base}/orw/resource/create'); ?>"><?= $this->getHtml('New', '0', '0'); ?></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<table id="<?= $tableView->id; ?>" class="default sticky">
|
<table id="<?= $tableView->id; ?>" class="default sticky">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user