annotate core/modules/image/templates/image-scale-summary.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 summary of an image scale effect.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - data: The current configuration for this resize effect, including:
Chris@0 8 * - width: The width of the resized image.
Chris@0 9 * - height: The height of the resized image.
Chris@0 10 * - upscale: If images larger than their original size can scale.
Chris@0 11 * - effect: The effect information, including:
Chris@0 12 * - id: The effect identifier.
Chris@0 13 * - label: The effect name.
Chris@0 14 * - description: The effect description.
Chris@0 15 *
Chris@0 16 * @ingroup themeable
Chris@0 17 */
Chris@0 18 #}
Chris@0 19 {% if data.width and data.height -%}
Chris@0 20 {{ data.width }}×{{ data.height }}
Chris@0 21 {%- else -%}
Chris@0 22 {% if data.width %}
Chris@0 23 {% trans %}
Chris@0 24 width {{ data.width }}
Chris@0 25 {% endtrans %}
Chris@0 26 {% elseif data.height %}
Chris@0 27 {% trans %}
Chris@0 28 height {{ data.height }}
Chris@0 29 {% endtrans %}
Chris@0 30 {% endif %}
Chris@0 31 {%- endif %}
Chris@0 32
Chris@0 33 {% if data.upscale %}
Chris@0 34 {% trans %}
Chris@0 35 (upscaling allowed)
Chris@0 36 {% endtrans %}
Chris@0 37 {% endif %}