bug fixes

This commit is contained in:
Dennis Eichhorn 2024-05-12 00:06:28 +00:00
parent 20c6bc7ecd
commit 58117ca0ff
5 changed files with 8 additions and 5 deletions

View File

@ -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.'

View File

@ -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,

View File

@ -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;
}

View File

@ -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>

View File

@ -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)) : ?>