FEATURE: add categories into article detail and article list
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
<small>{{$page->author->name}}</small>
|
||||
</div>
|
||||
|
||||
@if($page->category)
|
||||
<div class="m-t-25 text-center">
|
||||
<a href="./seznam-clanku?category={{$page->category->url}}"><i class="fa fa-tag"></i> {{$page->category->name}}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@if(isset($page->module_settings->allowComments) && $page->module_settings->allowComments != 0)
|
||||
<div class="m-t-25 text-center">
|
||||
<a href="#comments"><i class="fa fa-comments"></i> {{$page->comments->count()}}</a>
|
||||
|
||||
@@ -37,8 +37,14 @@
|
||||
<a href="{{route('page.content', ['url' => $article->url])}}">více</a>
|
||||
</article>
|
||||
|
||||
@if(isset($article->module_settings->allowComments) && $article->module_settings->allowComments != 0)
|
||||
@if(isset($article->module_settings->allowComments) && $article->module_settings->allowComments != 0 || $article->category)
|
||||
<footer class="text-right">
|
||||
|
||||
@if($article->category)
|
||||
<a href="./seznam-clanku?category={{$article->category->url}}"><i
|
||||
class="fa fa-tag"></i> {{$article->category->name}}</a>
|
||||
@endif
|
||||
|
||||
<a href="{{route('page.content', ['url' => $article->url])}}#comments">
|
||||
<i class="fa fa-fw fa-comments"></i> {{$article->comments->count()}}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user