{% load static %} {# ─────────────────────────────────────────────────────────────────────── #} {# _bud_apparatus.html — shared markup for the four bud-btn use cases: #} {# • _my_sea_bud_panel.html (my-sea gatekeeper invite stub) #} {# • _bud_panel.html (post.html share-post) #} {# • _bud_invite_panel.html (room.html gatekeeper game-invite) #} {# • _bud_add_panel.html (my_buds.html add-bud) #} {# #} {# Each caller follows the include w. its own #} {# block carrying the per-use-case #} {# submitUrl + onSuccess + (optional) duplicateTargetSelector. The shell #} {# loads bud-btn.js + autocomplete (when `include_suggestions` is true) #} {# so the caller can call bindBudBtn() inline. #} {# #} {# Context vars: #} {# aria_label — string for #id_bud_btn aria-label #} {# sharer_name — optional; renders data-sharer-name="..." on #} {# #id_bud_panel (post-share only) #} {# include_suggestions — bool; renders #id_bud_suggestions + autocompete #} {# script (false only for my_buds, where the #} {# autocomplete pool == request.user.buds, which #} {# is precisely what you can't usefully re-add) #} {# ─────────────────────────────────────────────────────────────────────── #}
{% if include_suggestions %} {% endif %}