{# Forum building blocks shared by discussions.html and discussion_thread.html. #} {% macro av(name, size="", official=False) -%} {%- if official -%} {%- else -%} {%- set a = forum_avatar(name) -%} {%- endif -%} {%- endmacro %} {# Author name plus, for the official account, the verified badge; automated posts also say so. Only server-side code can create official posts. #} {% macro author(item, tag="b") -%} <{{ tag }}{% if tag != 'b' %} class="who"{% endif %}>{{ item.author }} {%- if item.is_official %} Verified moderator{% endif %} {%- if item.automated %} Automated{% endif %} {%- endmacro %} {# "3h" -> "3h ago"; "now" and calendar dates stay as they are #} {% macro ago(s) -%}{{ s }}{{ ' ago' if s[-1] in 'mhd' else '' }}{%- endmacro %} {% macro stack(names, limit=4) -%} {%- for n in names[:limit] %}{{ av(n) }}{% endfor -%} {%- if names|length > limit %}+{{ names|length - limit }}{% endif -%} {%- endmacro %} {# Up/down vote control. kind: 't' thread or 'r' reply; mine: -1, 0 or 1. #} {% macro vote(kind, id, score, mine=0, layout="col") -%}
{{ score }}
{%- endmacro %} {% macro icon_comment() -%}{%- endmacro %} {% macro icon_share() -%}{%- endmacro %} {% macro rules() -%}

Board rules

  1. Be kind. Argue with ideas, not people.
  2. Vote for useful, not for agree. Votes are one per browser and network, not per person.
  3. No price talk. No pumping, shilling or predictions.
  4. Never post a seed phrase or private key, not even "just to check".
  5. Nobody from MoonBite DMs first. Anyone who does is a scammer.
  6. Names aren't verified. Anyone can post under any name.

Emoji artwork: Twemoji, CC-BY 4.0.

{%- endmacro %} {% macro emoji_button() -%} {%- endmacro %} {% macro format_hint() -%} {{ emoji_button() }} Blank line for a new paragraph, > to quote, `code`, :rocket: for emoji. Ctrl + Enter posts. {%- endmacro %} {# Moderator-only pieces. The macros file is imported "with context" so these can see is_mod and forum_csrf; for everyone else they render nothing. #} {% macro as_official() -%} {%- if is_mod %} {%- endif %} {%- endmacro %} {% macro mod_button(kind, id, action, label, next) -%} {%- if is_mod %}
{%- endif %} {%- endmacro %} {% macro report_button(kind, id) -%} {%- endmacro %} {% macro honeypot() -%} {%- endmacro %}