{# The user's Test of a service draft (sync_services.sync_service_test): what each hook returned and every web call, with whether it went out. Styled like the panel it sits in: section headings with info hovers, the web calls as the Access tab's rows. #} {% macro help_tip(text) %}{% endmacro %} {% macro heading(title, help=none) %}
| {{ _("Label") }} | {{ _("Id") }} |
|---|---|
| {{ item.label }} | {{ item.id }} |
{{ _("None listed.") }}
{% endif %} {% endfor %} {% if report.role == 'source' %} {{ heading(ngettext("First page: %(num)d record", "First page: %(num)d records", report.record_count), _("More pages follow; a run lists them all.") if report.more else none) }} {% if report.records %}| {{ _("File") }} | {{ _("Size") }} | {{ _("Taken") }} | {{ _("Hash") }} |
|---|---|---|---|
| {{ record.filename }} | {{ record.size or '' }} | {{ (record.taken_at or {}).get('local') or (record.taken_at or {}).get('utc') or '' }} | {{ _("yes") if record.hash else _("no") }} |
| {{ _("Key") }} | {{ _("Result") }} |
|---|---|
| {{ result.key }} | {{ result.remote_id or (result.error or {}).get('code') or '' }} |
{{ call.url }}
{% if call.mode == 'live' %}{{ _("Read ยท %(status)s", status=call.status) }}
{% elif call.mode == 'denied' %}{{ _("Refused") }}
{% else %}{{ _("Recorded") }}{% endif %}
{{ _("None.") }}
{% endif %}