{% from "_connection_macros.html" import connection_spec %} {%- macro mag(v) -%}{{ v | int if v == v | int else v | round(1) }}{%- endmacro -%} {%- macro magnification_range(info) -%} {%- if info and info.magnification_min is not none and info.magnification_max is not none -%} {{ mag(info.magnification_min) }}-{{ mag(info.magnification_max) }} {%- elif info and info.magnification_min is not none -%} {{ mag(info.magnification_min) }} {%- elif info and info.magnification_max is not none -%} {{ mag(info.magnification_max) }} {%- endif -%} {%- endmacro -%} {%- macro magnification(info) -%} {%- set range = magnification_range(info) -%} {%- if range -%} {{ range }}x{% if info.objective_lens_diameter_mm is not none %}{{ mag(info.objective_lens_diameter_mm) }}{% endif %} {%- else -%} — {%- endif -%} {%- endmacro -%}
{% for ct in column_types %} {% endfor %} {% for row in rows %} {% set scope = row.scope %} {% set info = row.info %} {% for ct in column_types %} {% set entries = row.cells.get(ct.id) %} {% endfor %} {% else %} {% endfor %}
Scope Manufacturer Model Type Magnification Objective thread{{ ct.name }}
{{ scope.description }} {% if scope.sku %}
{{ scope.sku }}{% endif %}
{{ scope.manufacturer.name if scope.manufacturer else "—" }} {{ scope.scope_model.name if scope.scope_model else "—" }} {{ scope.sub_part_type.name if scope.sub_part_type else "—" }} {{ magnification(info) }} {% if row.objective_attachment_point %} {{ connection_spec(row.objective_attachment_point) }} {% elif info and info.objective_thread_pitch %} {{ info.objective_thread_pitch }} {% else %}—{% endif %} {% if entries %} {% for e in entries %}
{{ e.label | capitalize }} {{ e.part.description | truncate(48) }}
{% endfor %} {% else %} — {% endif %}
No scopes match your search.