Laatste nieuws balk met datum/tijd

This commit is contained in:
2020-01-18 12:43:13 +01:00
parent 8c182c9c94
commit ab00033312
2 changed files with 5 additions and 4 deletions

View File

@@ -59,12 +59,11 @@ button[disabled]:hover
cursor: default;
}
.posted_by abbr.when
.latest_news_scrolling_list .when
{
float: right;
color: #7C7C7C;
font-size: 12px;
margin-top: 7px;
margin-left: 2em;
text-decoration: none;
}

View File

@@ -20,9 +20,11 @@ $latest_news = json_decode(Storage::disk('local')->get('laatste_nieuws.json'));
<li class="right"><a href="#"></a></li>
<li class="posts">
<ul class="latest_news_scrolling_list">
@foreach($item as $latest_news)
@foreach($latest_news as $item)
@php($item = new \Model\NewsItem($item))
<li>
<a href="{{url($item->url)}}" title="{{$item->title}}">{{$item->title}}</a>
<span class="when">{{Formatter::relativeDate($item->published)}} {{$item->published->format('H:i')}}</span>
</li>
@endforeach
</ul>