Skip to content

Commit

Permalink
Merge pull request #469 from helsingborg-stad/3.0/fix/curator-error-n…
Browse files Browse the repository at this point in the history
…otices

Fix: Error notices
  • Loading branch information
Anna authored Sep 8, 2023
2 parents 447ac75 + d492a09 commit 559ea67
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions source/php/Module/Curator/views/partials/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
'size' => 'md'
])
<div class="o-grid">
@if ($post->oembed || $post->image)
@if (!empty($post->oembed) || !empty($post->image))
<div class="o-grid-6@md">
@if ($post->oembed)
@if (!empty($post->oembed))
{!! $post->oembed !!}
@else
@image([
Expand Down Expand Up @@ -40,19 +40,23 @@
])
{{ $post->formatted_date }}
@endtypography
@typography([
'element' => 'h2',
'variant' => 'h4',
'classList' => ['u-margin--0']
])
{{ $post->title }}
@endtypography
@typography([
'variant' => 'p',
'classList' => ['u-margin__top--1', 'u-margin__bottom--2']
])
{{ $post->full_text }}
@endtypography
@if(!empty($post->title))
@typography([
'element' => 'h2',
'variant' => 'h4',
'classList' => ['u-margin--0']
])
{{ $post->title }}
@endtypography
@endif
@if(!empty($post->full_text))
@typography([
'variant' => 'p',
'classList' => ['u-margin__top--1', 'u-margin__bottom--2']
])
{{ $post->full_text }}
@endtypography
@endif
@button([
// TODO: How to position the button centered at the bottom of the post?
'text' => $i18n['goToOriginalPost'],
Expand Down

0 comments on commit 559ea67

Please sign in to comment.