file-upload-help.html.twig in Open Social 8.2
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/file/file-upload-help.html.twig
- 8 themes/socialbase/templates/file/file-upload-help.html.twig
- 8.3 themes/socialbase/templates/file/file-upload-help.html.twig
- 8.4 themes/socialbase/templates/file/file-upload-help.html.twig
- 8.5 themes/socialbase/templates/file/file-upload-help.html.twig
- 8.6 themes/socialbase/templates/file/file-upload-help.html.twig
- 8.7 themes/socialbase/templates/file/file-upload-help.html.twig
- 8.8 themes/socialbase/templates/file/file-upload-help.html.twig
Theme override to display help text for file fields.
Available variables:
- description: The normal description for this field, specified by the user.
- descriptions: Lines of help text for uploading a file.
- popover: Markup to display the descriptions as a popover instead.
See also
File
themes/socialbase/templates/file/file-upload-help.html.twigView source
- {#
- /**
- * @file
- * Theme override to display help text for file fields.
- *
- * Available variables:
- * - description: The normal description for this field, specified by the user.
- * - descriptions: Lines of help text for uploading a file.
- * - popover: Markup to display the descriptions as a popover instead.
- *
- * @see template_preprocess_file_upload_help()
- */
- #}
-
- {% if popover %}
- {{ popover }}
- {% else %}
- {{ descriptions|safe_join('<br>') }}
- {% endif %}
-
- {% if popover and description %}
- •
- {% endif %}
-
- {% if description %}
- {{ description }}
- {% endif %}