{% extends "public_base.html" %} {% import "configurator/_macros.html" as ck %} {# What an option card says about its feature: the name with its released version, what it does, and its package. The package is two boxes, the org and the name, so a narrow card wraps after the slash rather than at the hyphen in "splent-io"; the org is the same everywhere, so a phone hides it (skin_store). The description and version come from the marketplace index and are simply left out for a feature it does not publish. The note is filled in by the script with why the card is locked or unavailable. #} {% macro option_body(feature) -%} {{ feature.short }}{% if feature.version %} v{{ feature.version }}{% endif %}{% if feature.external %} {{ _("external") }}{% endif %} {% if feature.description %}{{ feature.description }}{% endif %} {% if feature.org %}{{ feature.org }}/{% endif %}{{ feature.package }} {%- endmacro %} {# The feature's marketplace page, in a new tab so the selection stays put. A link inside a label follows the link and leaves the checkbox alone. #} {% macro option_link(feature) -%} {% if feature.url %}{{ ck.icon("external-link", 15) }}{% endif %} {%- endmacro %} {# One feature of the model. Its input is a radio when it sits in an alternative group and a checkbox otherwise. The features under it (its own options, groups and sections) follow the card, indented, and the card spans the whole row so they line up under it. #} {% macro render_feature(feature) -%} {% set nested = feature.options or feature.choices or feature.sections %}
{{ ck.icon("git-branch", 14) }}{% if choice.owner != node.name %}{{ choice.owner }}{% endif %} {% if multiple %}{{ _("Pick one or more.") }}{% else %}{{ _("Pick one.") }}{% endif %}
{{ spl.description }}
{% endif %}{{ _("Lowercase letters, digits and underscores.") }}
{{ _("Pick what your product needs. What a feature depends on comes along with it.") }}
{{ render_children({"options": tree.options, "choices": tree.choices, "sections": []}, 2) }}