{# /** * @file * Default theme implementation for comments. * * Available variables: * - author: Comment author. Can be a link or plain text. * - content: The content-related items for the workflow transition display. Use * {{ content }} to print them all, or print a subset such as * {{ content.field_example }}. Use the following code to temporarily suppress * the printing of a given child element: * @code * {{ content|without('field_example') }} * @endcode * - time: Formatted date and time for when the workflow transition was created. * - from_state: State object, you can display label via from_state.label. * - to_state: State object, you can display label via to_state.label. * - user: User object. * * @see template_preprocess_workflow_transition() * * @ingroup themeable */ #} {% set classes = [ 'field', 'field--type-workflow-transition', 'field--label-inline', ] %} {% set field_classes = [ 'field--label-inline', 'clearfix', ] %} {% set label_classes = [ 'field__label', ] %} {% set value_classes = [ 'field__item', ] %}
{% trans %}From State{% endtrans %}
{{ from_state.label }} {% trans %}To State{% endtrans %} {{ to_state.label }} {% trans %}Date{% endtrans %} {{ time }} {% trans %}By{% endtrans %} {{ user.label }} {% if comment %} {% trans %}Comment{% endtrans %} {{ comment }} {% endif %} {% if content %} {{ content }} {% endif %}