mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
3.2.4
This commit is contained in:
@@ -9,10 +9,27 @@
|
||||
<div class="row">
|
||||
@foreach ($news as $new)
|
||||
<div class="col-md-4">
|
||||
<h3>{{ $new->title }}</h3>
|
||||
<h3 class="news-title mb-4">{{ $new->title }}</h3>
|
||||
<div class="news-body-small"> {!! $new->body !!}</div>
|
||||
<span class="news-small">{{ \App\User::find($new->user_id)->fullname()}}, {{$new->created_at}}</span>
|
||||
<a name="news" id="news" class="btn btn-block btn-secondary mt-2" href="/news/{{$new->id}}" role="button">Voir plus!</a>
|
||||
<div class="news-tags">
|
||||
@if($new->tags != [])
|
||||
@foreach($new->tags as $tag)
|
||||
@if($tag == "Important")
|
||||
<span class="badge badge-pill badge-danger">{{$tag}}</span>
|
||||
@else
|
||||
<span class="badge badge-pill badge-default">{{$tag}}</span>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
<a name="news" id="news" class="btn btn-block btn-secondary mt-2"
|
||||
@if(isset($new->event_id))
|
||||
href="/news/{{$new->event_id}}?type=msg" role="button">Voir plus!
|
||||
@else
|
||||
href="/news/{{$new->id}}" role="button">Voir plus!
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user