{% 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 -%}
{% include "admin/_pagination.html" %} {% if can_write_scopes %} {% endif %} {% for ct in column_types %} {% endfor %} {% for row in rows %} {% set scope = row.scope %} {% set info = row.info %} {% if can_write_scopes %} {% endif %} {% for ct in column_types %} {% set entries = row.cells.get(ct.id) %} {% endfor %} {% else %} {% endfor %}
Scope Type Magnification Objective thread{{ ct.name }}
{{ scope.description }} {% if scope.sku %}
{{ scope.sku }}{% endif %}
{{ 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 %} {% endfor %} {% else %} — {% endif %}
No scopes match your search.