comparison core/modules/forum/templates/forum-submitted.html.twig @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 {#
2 /**
3 * @file
4 * Default theme implementation for a forum post submission string.
5 *
6 * The submission string indicates when and by whom a topic was submitted.
7 *
8 * Available variables:
9 * - author: The author of the post.
10 * - time: How long ago the post was created.
11 * - topic: An object with the raw data of the post. Potentially unsafe. Be
12 * sure to clean this data before printing.
13 *
14 * @see template_preprocess_forum_submitted()
15 *
16 * @ingroup themeable
17 */
18 #}
19 {% if time %}
20 <span>{% trans %}By {{ author }} {{ time }} ago{% endtrans %}</span>
21 {% else %}
22 {{ 'n/a'|t }}
23 {% endif %}