Skip to content

Commit

Permalink
PE-590 Add image and warning badge for missing media (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
odensc authored May 24, 2024
1 parent 1700294 commit 7ef5eb2
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{#
/**
* @file
* Default theme implementation for a missing media error.
*
* Available variables
* - message: The message text.
* - attributes: HTML attributes for the containing element.
*
* When a response from the back end can't be returned, a related error message
* is displayed from JavaScript.
*
* @see Drupal.theme.mediaEmbedPreviewError
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('media d-flex flex-column align-items-start') }}>
<img width="100rem" src="/core/modules/media/images/icons/no-thumbnail.png" />
<span class="badge text-white bg-danger">{{ message }}</span>
</div>

0 comments on commit 7ef5eb2

Please sign in to comment.