message_notification-1.0.1-beta1/templates/message--notification.html.twig
templates/message--notification.html.twig
{#
/**
* @file
* Default theme implementation for message entities.
*
* Available variables:
* - $content: An array of comment items. Use render($content) to print them all, or
* print a subset such as render($content['field_example']). Use
* hide($content['field_example']) to temporarily suppress the printing of a
* given element.
* - $title: The (sanitized) entity label.
* - $url: Direct url of the current entity if specified.
* - $page: Flag for the full page state.
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. By default the following classes are available, where
* the parts enclosed by {} are replaced by the appropriate values:
* - entity-{ENTITY_TYPE}
* - {ENTITY_TYPE}-{BUNDLE}
*
* Other variables:
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
*
* @see template_preprocess()
* @see template_preprocess_message()
* @see template_process()
*/
#}
<div{{ attributes.addClass('message-notification') }}>
{% if user_picture %}
{{ user_picture }}
{% else %}
<div class="first-letter">
{{ user_first_letter }}
</div>
{% endif %}
<div class="content">
{{ content }}
</div>
{% if message.created.value %}
<div class="time-ago-wrapper" data-created="{{ message.created.value }}"></div>
{% endif %}
</div>
