data-policy-data-policy-revision.html.twig in Data Policy 8
data-policy-data-policy-revision.html.twig
Default theme implementation to present Data policy revision teaser.
This template is used when viewing Data policy revision teaser.
Available variables:
- date: Date and time when a revision was created.
- username: Name of the user.
- current: TRUE if it is current revision.
- message: Revision log message teaser.
See also
template_preprocess_data_policy_data_policy_revision()
1 theme call to data-policy-data-policy-revision.html.twig
- DataPolicy::revisionsOverviewPage in src/
Controller/ DataPolicy.php - Generates an overview table of older revisions of a Data policy.
File
templates/data-policy-data-policy-revision.html.twigView source
- {#
- /**
- * @file data-policy-data-policy-revision.html.twig
- *
- * Default theme implementation to present Data policy revision teaser.
- *
- * This template is used when viewing Data policy revision teaser.
- *
- * Available variables:
- * - date: Date and time when a revision was created.
- * - username: Name of the user.
- * - current: TRUE if it is current revision.
- * - message: Revision log message teaser.
- *
- * @see template_preprocess_data_policy_data_policy_revision()
- *
- * @ingroup themeable
- */
- #}
- {{ date }} by {{ username }}
-
- {% if current %}
- <em>({% trans %}current revision{% endtrans %})</em>
- {% endif %}
-
- {% if message %}
- <p class="revision-log">{{ message }}</p>
- {% endif %}