FIX: fix article detail
This commit is contained in:
+6
-7
@@ -17,14 +17,15 @@
|
|||||||
|
|
||||||
@if($page->category)
|
@if($page->category)
|
||||||
<div class="m-t-25 text-center">
|
<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>
|
<a href="./seznam-clanku?category={{$page->category->url}}"><i
|
||||||
|
class="fa fa-tag"></i> {{$page->category->name}}</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@if(isset($page->moduleSettings->allowComments) && $page->moduleSettings->allowComments != 0)
|
@if(isset($page->moduleSettings['allowComments']) && $page->moduleSettings['allowComments'] != 0)
|
||||||
<div class="m-t-35">
|
<div class="m-t-35">
|
||||||
<a href="#comments">{{$page->comments->count()}} <i class="fa fa-comments"></i></a>
|
<a href="#comments">{{count($page->comments)}} <i class="fa fa-comments"></i></a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</aside>
|
</aside>
|
||||||
@@ -36,11 +37,9 @@
|
|||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if(isset($page->moduleSettings->allowComments) && $page->moduleSettings->allowComments != 0)
|
@if(isset($page->moduleSettings['allowComments']) && $page->moduleSettings['allowComments'] != 0)
|
||||||
<div class="row m-t-50">
|
<div class="row m-t-50">
|
||||||
<a name="comments"></a>
|
<a name="comments"></a>
|
||||||
|
|
||||||
|
|
||||||
<h2 class="column large-11" style="float: right;">Komentáře</h2>
|
<h2 class="column large-11" style="float: right;">Komentáře</h2>
|
||||||
@foreach($page->comments as $comment)
|
@foreach($page->comments as $comment)
|
||||||
|
|
||||||
@@ -81,7 +80,7 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<form method="post" action="{{route('comments.new', ['id' => $page->id])}}">
|
<form method="post" action="{{route('comments.new', ['article' => $page])}}">
|
||||||
{!! csrf_field() !!}
|
{!! csrf_field() !!}
|
||||||
|
|
||||||
@if(!$loggedUser)
|
@if(!$loggedUser)
|
||||||
+1
-1
@@ -37,7 +37,7 @@
|
|||||||
<a href="{{route('page.content', ['url' => $article->url])}}">více</a>
|
<a href="{{route('page.content', ['url' => $article->url])}}">více</a>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
@if(isset($article->moduleSettings->allowComments) && $article->moduleSettings->allowComments != 0 || $article->category)
|
@if(isset($article->moduleSettings['allowComments']) && $article->moduleSettings['allowComments'] != 0 || $article->category)
|
||||||
<footer class="text-right">
|
<footer class="text-right">
|
||||||
|
|
||||||
@if($article->category)
|
@if($article->category)
|
||||||
Reference in New Issue
Block a user