{% load static %}
<div class="sub-downloads-channel{% if channel.is_previous %} sub-downloads-channel--prev{% endif %}">
  {% include "products/_release_channel_badge.html" with version=channel.version %}
  {% if channel.install_cells %}
  <div class="sub-downloads-grid">
    {% for cell in channel.install_cells %}
    <div class="sub-dl-item">
      <div class="sub-dl-icon-wrap">
        {% if cell.icon %}
        <img src="{% static cell.icon %}" alt="" width="32" height="32" class="platform-icon sub-dl-icon" aria-hidden="true" />
        {% else %}
        <span class="sub-dl-source-mark" aria-hidden="true">
          <svg class="sub-dl-source-svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.85" stroke-linecap="round">
            <polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>
          </svg>
        </span>
        {% endif %}
      </div>
      <span class="sub-dl-platform">{{ cell.label }}</span>
      <span class="download-version">{{ channel.version.version }}</span>
      <a href="{{ cell.url }}" class="btn-primary btn--sm"{% if cell.external %} target="_blank" rel="noopener noreferrer"{% endif %}>{% if cell.label == "Source code" %}Source{% else %}Download{% endif %}</a>
    </div>
    {% endfor %}
  </div>
  {% endif %}
  {% if channel.version.package_resource_url %}
  <p class="sub-install-extra-resource">
    <a href="{{ channel.version.package_resource_url }}" target="_blank" rel="noopener noreferrer">Package resource</a>
  </p>
  {% endif %}
  {% if channel.version.release_notes %}
  <p class="sub-release-notes">{{ channel.version.release_notes }}</p>
  {% endif %}
</div>
