private-message-thread.html.twig in Open Social 8.6
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8.2 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8.3 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8.4 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8.5 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8.7 themes/socialbase/templates/private_message/private-message-thread.html.twig
- 8.8 themes/socialbase/templates/private_message/private-message-thread.html.twig
Default theme implementation to display a private message thread.
Available variables:
- private_message_thread: The private message thread entity with limited access to object properties and methods.
- content: All private message thread items. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use {{ content|without('field_example') }} to temporarily suppress the printing of a given child element.
- last_update: Themed display of the last update time for the thread
- url: Direct URL of the current private message thread.
- view_mode: View mode; for example, "teaser" or "full".
- logged_in: Flag for authenticated user status. Will be true when the current user is a logged-in member.
See also
File
themes/socialbase/templates/private_message/private-message-thread.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a private message thread.
- *
- * Available variables:
- * - private_message_thread: The private message thread entity
- * with limited access to object properties and methods.
- * - content: All private message thread items. Use {{ content }} to print them all,
- * or print a subset such as {{ content.field_example }}. Use
- * {{ content|without('field_example') }} to temporarily suppress the printing
- * of a given child element.
- * - last_update: Themed display of the last update time for the thread
- * - url: Direct URL of the current private message thread.
- * - view_mode: View mode; for example, "teaser" or "full".
- * - logged_in: Flag for authenticated user status. Will be true when the
- * current user is a logged-in member.
- *
- * @see template_preprocess_private_message()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('socialbase/message') }}
- {% if view_mode == 'inbox' %}
- <a href="{{ url }}" title="{{ 'View thread'|t }}" class="card message">
- <div class="card__block">
- <div class="media-wrapper">
- <div class="media">
- <div class="media-left avatar">
- {{ content.members }}
- </div>
- <div class="media-body message__inbox-body">
- {{ content.membernames }} <span class="read-indicator"></span>
- {{ content.last_message }}
- </div>
- </div>
- </div>
- </div>
- </a>
-
- {% else %}
- <div class="card card--message-thread">
- <div class="card__block">
- <div class="media-wrapper">
- <div class="media message__heading">
- <div class="message__back-btn">
- <a href="{{ content.back_to_inbox }}" class="btn btn-icon-toggle">
- <svg class="btn-icon icon-gray">
- <use xlink:href="#icon-navigate_before"></use>
- </svg>
- </a>
- </div>
- {{ content.members }}
-
- <div class="message__thread-actions btn-group">
- <button type="button" data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" class="btn btn-icon-toggle dropdown-toggle">
- <svg class="btn-icon icon-gray">
- <use xlink:href="#icon-expand_more"></use>
- </svg>
- </button>
- <ul class="dropdown-menu dropdown-menu-right">
- <li>{{ content.delete_link }}</li>
- </ul>
- </div>
-
- </div>
- </div>
- {{ content.private_messages }}
- {% if content.private_message_form %}
- <div class="card__nested-section">
- {{ content.private_message_form }}
- </div>
- {% endif %}
- </div>
- </div>
- {% endif %}