Mercurial > hg > isophonics-drupal-site
annotate core/modules/forum/templates/forum-submitted.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 {# |
Chris@0 | 2 /** |
Chris@0 | 3 * @file |
Chris@0 | 4 * Default theme implementation for a forum post submission string. |
Chris@0 | 5 * |
Chris@0 | 6 * The submission string indicates when and by whom a topic was submitted. |
Chris@0 | 7 * |
Chris@0 | 8 * Available variables: |
Chris@0 | 9 * - author: The author of the post. |
Chris@0 | 10 * - time: How long ago the post was created. |
Chris@0 | 11 * - topic: An object with the raw data of the post. Potentially unsafe. Be |
Chris@0 | 12 * sure to clean this data before printing. |
Chris@0 | 13 * |
Chris@0 | 14 * @see template_preprocess_forum_submitted() |
Chris@0 | 15 * |
Chris@0 | 16 * @ingroup themeable |
Chris@0 | 17 */ |
Chris@0 | 18 #} |
Chris@0 | 19 {% if time %} |
Chris@0 | 20 <span>{% trans %}By {{ author }} {{ time }} ago{% endtrans %}</span> |
Chris@0 | 21 {% else %} |
Chris@0 | 22 {{ 'n/a'|t }} |
Chris@0 | 23 {% endif %} |