v1.4.8g Fix a bug where if you made a guide without a images the category would not show up

This commit is contained in:
victor 2020-10-27 09:32:23 +01:00
parent 304f565421
commit f51f92b218
3 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
@extends("admin.layout.header")
@section("title")
Opret Bruger Vejledning
Vejledning - Vis
@endsection
@section("path")

View File

@ -2,7 +2,7 @@
@extends("admin.layout.header")
@section("title")
Opret Nyhed
Nyheder - Vis
@endsection
@section("path")

View File

@ -195,6 +195,7 @@
<div class="container" style="margin-top: 8px;">
@php $tags = [ '<p>', '<b>', '<em>', '<a>', '<u>', '<s>', '<sub>', '<ul>', '<li>', '<sup>', '<div>', '<blockquote>', '<ol>', '<strong>', '<br>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<h7>', '<span>'] @endphp
{!! \App\Helpers::closetags(substr(strip_tags($new->content, $tags), 0, 300)) !!}
<div class="information2">{{__('msg.kategori')}}: {{\App\GuidesCategory::query()->where('id', '=', \App\Guide::query()->where('id','=', $new->arrangement_id)->first()->guide_category_id)->first()->guidesCategoryName}}</div>
@if ($new->type == 'Guide') {{-- Else if's displaying guides, then show `Læs mere` --}}
<div class="row" style="justify-content: center; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .2);">
<a style="font-weight: 700;" href="{{route("guides.show", ["guide" => $new->arrangement_id])}}" class="sde-blue">{{__('msg.læsmere')}}</a>