{# Storefront building blocks (monograms, badges, chips, feather icons). All styling lives in skin_store.css (splent_feature_skin_store). #} {% set ICON_PATHS = { "search": '', "package": '', "box": '', "layers": '', "check": '', "check-circle": '', "alert-triangle": '', "alert-circle": '', "x-circle": '', "users": '', "external-link": '', "copy": '', "terminal": '', "arrow-right": '', "arrow-left": '', "git-branch": '', "tag": '', "sliders": '', "download": '', "plus": '', "lock": '', "grid": '', "info": '', "zap": '', } %} {% macro icon(name, size=16) -%} {%- endmacro %} {% macro monogram(short, large=false) -%} {%- endmacro %} {% macro archetype_badge(archetype) -%} {%- if archetype %}{{ archetype }}{% endif -%} {%- endmacro %} {% macro version_pill(feature) -%} v{{ feature.project_version or feature.version or "0.0.0" }} {%- endmacro %} {% macro feature_chip(short, external=false) -%} {%- if external -%} {{ short }}{{ _("external") }} {%- else -%} {{ short }} {%- endif -%} {%- endmacro %} {% macro contract_row(label, items) -%} {% if items %}
{{ label }}
{% for item in items %}{{ item }}{% endfor %}
{% endif %} {%- endmacro %} {# A shell command with each argument in its own box, so a narrow column wraps between arguments and never inside one ('splent-io/...' breaks at its hyphen as plain text). An argument with a slash is two boxes, up to and after the last slash, so one too long for the line breaks after the slash. The store skin styles .store-cmd. #} {% macro command(text) -%} {% for arg in text.split() %}{% if "/" in arg and not arg.endswith("/") %}{% set head = arg.rsplit("/", 1)[0] ~ "/" %}{{ head }}{{ arg[head | length:] }}{% else %}{{ arg }}{% endif %}{% if not loop.last %} {% endif %}{% endfor %} {%- endmacro %}