{#- chirp-ui: Action Bar component
Horizontal row of icon buttons (reply, vote, share, comment, etc.).
Usage:
from "chirpui/action_bar.html" import action_bar, action_bar_item
call action_bar()
call action_bar_item(icon="up", label="Vote up", count=42)
call action_bar_item(icon="comment", label="Comment", count=12)
call action_bar_item(icon="share", label="Share")
end
-#}
{% def action_bar(cls="") %}
{% end %}
{% def action_bar_item(icon, label, count=none, href=none, active=false, cls="") %}
{% set active_class = " chirpui-action-bar__item--active" if active else "" %}
{% if href %}
{% else %}
{% else %}
{% end %}
{% end %}