ajusted news section

master
Benjamin Völkl 2020-09-24 11:08:22 +02:00
parent 01db4b65d7
commit 60e40adbce
1 changed files with 7 additions and 7 deletions

View File

@ -199,13 +199,15 @@
<div class="card shadow-lg" id="news-{{$nach->id}}"> <div class="card shadow-lg" id="news-{{$nach->id}}">


@if ($nach->image)
<img src="{{ asset('uploads/' . $nach->image) }}" class="card-img-top" style="display: block;">
@endif


<div class="card-body"> <div class="card-body">




<a href="{{ route('nachrichten.get', [$nach->category->slug, $nach->slug]) }}"> <a href="{{ route('nachrichten.get', [$nach->category->slug, $nach->slug]) }}">
<h2 class="card-title">{{$nach->title}}</h2> <h5 class="card-title">{{$nach->title}}</h5>
</a> </a>


<h6 class="card-subtitle mb-2"> <h6 class="card-subtitle mb-2">
@ -214,7 +216,7 @@
<img src="{{ $nach->user->gravatar() }}" width="32" class="rounded-circle"> <img src="{{ $nach->user->gravatar() }}" width="32" class="rounded-circle">
{{ $nach->user->name }}</a> - <span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span> {{ $nach->user->name }}</a> - <span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span>
@else @else
<span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span> <i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>
@endif @endif
</h6> </h6>


@ -228,9 +230,7 @@
@endif @endif
--> -->


@if ($nach->image)
<img src="{{ asset('uploads/' . $nach->image) }}" class="img-responsive" style="max-width: 100%;margin-bottom: 20px; margin-top:20px; display: block;">
@endif




<p class="card-text"> <p class="card-text">