#23: Multi-lines in album descriptions are now displayed correctly
This commit is contained in:
parent
86954effbf
commit
a459bc002a
@ -15,10 +15,9 @@
|
||||
<a class="pull-right btn btn-secondary" href="{{ $album->url() }}" target="_blank"><i class="fa fa-fw fa-eye"></i> @lang('admin.open_album')</a>
|
||||
|
||||
<h1 class="page-title">{{ $album->name }}</h1>
|
||||
<p>{{ $album->description }}</p>
|
||||
<hr/>
|
||||
<p>{!! nl2br(e($album->description)) !!}</p>
|
||||
|
||||
<div>
|
||||
<div class="mt-4">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
@include(Theme::viewName('partials.tab'), ['tab_name' => 'photos', 'tab_icon' => 'photo', 'tab_text' => trans('admin.album_photos_tab')])
|
||||
@can('upload-photos', $album)
|
||||
|
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
|
||||
<h1 class="page-title">{{ $album->name }}</h1>
|
||||
<p>{{ $album->description }}</p>
|
||||
<p>{!! nl2br(e($album->description)) !!}</p>
|
||||
<div class="clearfix"><!-- --></div>
|
||||
<hr/>
|
||||
</div>
|
||||
|
@ -21,7 +21,7 @@
|
||||
</div>
|
||||
|
||||
<h1 class="page-title">{{ $album->name }}</h1>
|
||||
<p>{{ $album->description }}</p>
|
||||
<p>{!! nl2br(e($album->description)) !!}</p>
|
||||
<div class="clearfix"><!-- --></div>
|
||||
<hr/>
|
||||
</div>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<a href="{{ $album->url() }}"><img class="card-img-top" src="{{ $album->thumbnailUrl('preview') }}"/></a>
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><a href="{{ $album->url() }}">{{ $album->name }}</a></h4>
|
||||
<p class="card-text">{{ $album->description }}</p>
|
||||
<p class="card-text">{!! nl2br(e($album->description)) !!}</p>
|
||||
|
||||
@can('edit', $album)
|
||||
<a href="{{ route('albums.show', ['id' => $album->id]) }}" class="card-link">@lang('gallery.manage_album_link')</a>
|
||||
|
Loading…
Reference in New Issue
Block a user