{#- A pairs venue's Connection (meridian.roles.data.pairs.ConnectionRead): the data role's (meridian/roles/data/connection.html), the venue's nuance at its blocks only -- under "Key", the venue master's ID (the role's Venue row, for a source of one venue); under "Stream", the session's state, with the products on it, its reconnects and messages, and its last error where it has one. The endpoints are in the tool's answer, kept off the page so it fits one screen. A plugin extends this for its own nuance. -#} {% extends "meridian/roles/data/connection.html" %} {% block vendor_rows %} {% import "meridian/roles/_rows.html" as om %} {% if section == "Key" %} {{ om.row("Venue", data.venue_id if data.venue_held else "Not held by the deployment", "" if data.venue_held else "Rows name the venue as reported.") }} {% elif section == "Stream" %} {% if data.stream_state == "off" %} {{ om.row("State", "Off", "Nothing stands to stream.") }} {% else %} {{ om.row("State", data.stream_state|capitalize, data.streaming ~ (" product" if data.streaming == 1 else " products") ~ " on it; " ~ data.stream_dropped ~ (" reconnect, " if data.stream_dropped == 1 else " reconnects, ") ~ data.stream_messages ~ (" message" if data.stream_messages == 1 else " messages") ~ ((", the last at " ~ data.last_message_at) if data.last_message_at else "") ~ ".") }} {% endif %} {% if data.stream_error %}{{ om.row("Last error", data.stream_error) }}{% endif %} {% endif %} {% endblock %}