{% comment %} Generic pill-button filter backed by a json_script options island, built into a dropdown by pill-filter.js (window.DSPill). Shared by the dashboard map filter bar and the activities filter bar. Include with: {% include "strava/widgets/filter_pill.html" with btn_id="x-year-btn" options_id="x-year-options" icon="year" all_label="All Years" current=year options=year_options trigger_class="pill-btn" %} Params: btn_id, options_id (unique DOM ids); icon ("year" or "gear"); all_label (reset row + default button text); current (selected value); options (the list island the JS reads); trigger_class (defaults to the map pill style). The page's JS wires selection via DSPill.build(document.getElementById(btn_id), { sections, onSelect }). {% endcomment %} {{ options|json_script:options_id }}