mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-11 16:18:41 +00:00
bug fixes
This commit is contained in:
parent
20c6bc7ecd
commit
58117ca0ff
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
|
|
@ -9,5 +9,5 @@ jobs:
|
|||
- uses: actions/first-interaction@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: 'Thank you for createing this issue. We will check it as soon as possible.'
|
||||
issue-message: 'Thank you for creating this issue. We will check it as soon as possible.'
|
||||
pr-message: 'Thank you for your pull request. We will check it as soon as possible.'
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ return [
|
|||
'dest' => '\Modules\News\Controller\SearchController:searchGeneral',
|
||||
'verb' => RouteVerb::ANY,
|
||||
'active' => true,
|
||||
'order' => 6,
|
||||
'permission' => [
|
||||
'module' => SearchController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
|
|||
|
|
@ -286,9 +286,11 @@ final class ApiController extends Controller
|
|||
$newsArticle->comments = $commnetList;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($request->hasData('tags')) {
|
||||
$newsArticle->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request);
|
||||
}
|
||||
*/
|
||||
|
||||
return $newsArticle;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\Uri\UriFactory;
|
|||
$newsList = $this->data['news'] ?? [];
|
||||
?>
|
||||
<div id="news-dashboard" class="col-xs-12 col-md-6" draggable="true">
|
||||
<div class="portlet">
|
||||
<section class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('News', 'News'); ?></div>
|
||||
<div class="slider">
|
||||
<table class="default sticky">
|
||||
|
|
@ -68,5 +68,5 @@ $newsList = $this->data['news'] ?? [];
|
|||
<div class="portlet-foot">
|
||||
<a class="button" href="<?= UriFactory::build('{/base}/news/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
@ -30,7 +30,7 @@ echo $this->data['nav']->render(); ?>
|
|||
$url = UriFactory::build('{/base}/news/article?id=' . $news->id);
|
||||
$profile = UriFactory::build('profile/view?{?}&id=' . $news->createdBy->id);
|
||||
?>
|
||||
<div class="portlet">
|
||||
<section class="portlet">
|
||||
<div class="portlet-head">
|
||||
<?= ($isSeen = \in_array($news->id, $seen)) ? '' : '<strong>'; ?>
|
||||
<a href="<?= $url; ?>"><?= $this->printHtml($news->title); ?></a>
|
||||
|
|
@ -56,7 +56,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<a tabindex="0" href="<?= $url; ?>" class="button"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php if (empty($newsList)) : ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user