{% import 'macros/form.html' as form %} {% set preset_labels = { 'strict': _('Strict: static HTML, no scripts'), 'interactive': _('Interactive: scripts, forms, popups and downloads, no storage'), 'external': _('External: a trusted third-party site, no sandbox') if isolated else _('External: a trusted third-party site, no sandbox (runs as Interactive for now)'), 'data-schematic': _('Data Schematic: qsv Data Schematics'), } %} {# TRANSLATORS: how the embedded page's height is set; "Auto" means the page reports its own height. #} {% set height_labels = { 'auto': _('Auto'), 'fixed': _('Fixed (px)'), 'viewport': _('Share of the window height, in percent'), 'aspect': _('Aspect ratio (e.g. 16/9)'), } %} {# TRANSLATORS: names of security presets, as in "the External preset". #} {% set preset_names = { 'strict': _('Strict'), 'interactive': _('Interactive'), 'external': _('External'), 'data-schematic': _('Data Schematic'), } %} {% asset 'webpageviewplus/webpageviewplus-js' %} {% call form.input('page_url', id='field-page_url', label=_('Web Page url'), placeholder=_('eg. http://example.com (if blank uses resource url)'), value=data.page_url, error=errors.page_url, classes=['control-full', 'control-large'], attrs={'class': 'form-control', 'aria-describedby': 'help-page_url'}) %}
{# TRANSLATORS: {services} is a comma-separated list of service names, such as "YouTube, Vimeo, Datawrapper". #} {{ _('Leave blank to show this resource\'s own address. Paste a link from {services} and the form suggests its embed address and settings.').format(services=service_names | join(', ')) }} {% if allowed_hosts %}{{ _('This site accepts pages from these hosts only: {hosts}.').format(hosts=allowed_hosts | join(', ')) }}{% endif %}
{% endcall %} {# Well-known services (YouTube, Datawrapper...): offers the embed address and the settings the embed needs. Filled in by the script. #} {% if frameability_check %} {% endif %}{{ _('Choose the most restrictive preset that works: if the page stays blank or broken, try the next one.') }} {% if 'external' in presets %}{{ _('External turns the sandbox off, so use it only for sites you trust.') }}{% endif %}
{{ _('Auto fits pages that report their own height, such as qsv Data Schematics. Other pages keep a fixed fallback height.') }}
{{ _('Pixels for Fixed, a number from 1 to 100 for a share of the window, or a ratio such as 16/9. Auto and the preset\'s default need no value.') }}
{% endcall %}{{ _('On phones and at high zoom, Open in new tab still shows, so visitors can always reach the page.') }}
{{ _('Visitors see a card naming the site, and nothing loads from it until they choose Load. Uploads and pages on this site load as usual.') }}
{# TRANSLATORS: view counts as "label: number" pairs, so no plural forms are needed. #} {{ _('Last 30 days. Shown: {impressions}. Seen: {seen}. Loaded: {loaded}. Used: {engaged}. Failed: {failed}.').format(**t) }}
{% endif %} {% endif %}