{% extends "server/base.html" %} {% block title %}{{ t.text("market.title") }}{% endblock %} {% block crumbs %}{{ t.text("market.subtitle") }}{% endblock %} {% block head %}{% if selection.computer is none %}{% endif %}{% endblock %} {% block body %} {% set target_name = chosen.name if chosen else t.text("market.server") %}
{% if selection.computer is none %} {% include "market/empty.html" %} {% else %} {% include "market/target.html" %} {% if not online or failure is not none %}

{{ t.text("market.unavailable") }}

{{ failure or t.text("market.connect_first") }}

{{ t.text("market.retry") }}
{% else %} {% if operation %}{% with package=operation_package %}{% include "market/operation.html" %}{% endwith %}{% else %}
{% endif %} {% if selection.view == 'indexes' %} {% include "market/indexes.html" %} {% else %}
{% include "server/icons/chevron-down.svg" %} {% include "server/icons/chevron-down.svg" %}
{% if selected or package %}{% include "market/detail.html" %}{% endif %} {% include "market/packages.html" %} {% endif %} {% endif %} {% endif %}
{% endblock %}