{% 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-css' %} {% asset 'webpageviewplus/webpageviewplus-js' %}
{# 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 %} {% if pdf_sandboxed %}{{ _('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 %} {% if thumbnail_choices is not none %}{{ _('An image in this dataset (PNG, JPEG, WebP or GIF), uploaded or linked, shown small beside this resource in the dataset\'s list. With None, the page\'s own preview image, a well-known service\'s logo or the format icon shows.') }}
{% else %}{{ _('An image uploaded to this dataset (PNG, JPEG, WebP or GIF), shown small beside this resource in the dataset\'s list. With None, a well-known service\'s logo or the format icon shows.') }}
{% endif %}{{ _('Otherwise, when no image is chosen above, this site fetches the image the page names for link previews, once when the view is saved, and shows a small copy.') }}
{% else %}{{ _('Otherwise, when no image is chosen above, an Office file uploaded to this dataset shows the preview picture saved inside it.') }}
{% endif %} {% if screenshots_on %}{{ _('It also stops screenshots of a page that refuses to be shown here, and saving with it ticked deletes any screenshot already taken.') }}
{% endif %}{%- if sp.state in ('new', 'after_save') -%} {{ _("A screenshot is taken after you save, if this page can't be shown in a frame.") }} {%- elif sp.state == 'other_url' -%} {{ _("The screenshot is of {url}. A new one is taken after you save, if the new page can't be shown in a frame.").format(url=sp.old_url) }} {%- elif sp.state == 'not_in_use' and sp.reason == 'frameable' -%} {{ _("This page can now be shown in a frame, so the screenshot isn't used.") }} {%- elif sp.state == 'not_in_use' and sp.reason == 'picked' -%} {{ _('You picked a thumbnail, so the screenshot isn\'t used.') }} {%- elif sp.state in ('not_in_use', 'private') -%} {{ _("This dataset is private, so screenshots aren't taken.") }} {%- elif sp.state == 'pending' -%} {% if sp.jobs %}{{ _('A screenshot will be taken in the background. Reload this form later to see it.') }}{% else %}{{ _('This site takes screenshots on a schedule. Reload this form later to see it.') }}{% endif %} {%- elif sp.state == 'failed' -%} {{ _('The last attempt on {date} failed: {reason}.').format(date=h.render_datetime(sp.attempted), reason=reasons.get(sp.error, sp.error)) }} {%- elif sp.state == 'in_use' -%} {% if sp.final_host %}{{ _('Taken {date}, of {host}.').format(date=h.render_datetime(sp.taken), host=sp.final_host) }}{% else %}{{ _('Taken {date}.').format(date=h.render_datetime(sp.taken)) }}{% endif %} {% if sp.list_other %}{{ _("Shown on this view's card. The resource list shows the page's own thumbnail instead.") }}{% else %}{{ _("Shown on this view's card and as its thumbnail in the resource list.") }}{% endif %} {%- endif -%}
{% if sp.button %}{% if sp.cooldown %} {{ ungettext('You can take a new screenshot in {seconds} second.', 'You can take a new screenshot in {seconds} seconds.', sp.cooldown).format(seconds=sp.cooldown) }} {% endif %}
{% endif %}{{ _('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 %}