{% extends "base.html" %} {% from "_macros.html" import modal %} {% block extra_head %} {% endblock %} {% block content %}
← Back to Gists

{{ render_title(gist['title'], author_is_admin=is_admin(author)) }}

📝 {{ language_name(gist['language']) }}
{% set _size = 32 %}{% set _size_class = "sm" %}{% set _user = author %}{% include "_avatar_link.html" %}
{% set _user = author %}{% set _class = none %}{% include "_user_link.html" %} · Level {{ author.get('level', 1) if author else 1 }} · {{ dt_ago(gist.created_at) if gist.get('created_at') else time_ago }}
{% if gist.get('description') %} {% if maturity_hidden(maturity, user) %} {% set _level = maturity %}{% include "_maturity_gate.html" %} {% else %}
{{ render_content(gist['description'], author_is_admin=is_admin(author)) }}
{% endif %} {% endif %} {% if attachments %} {% include "_attachment_display.html" %} {% endif %} {% if gist['language'] == 'markdown_rendered' %}
{{ render_content(gist['source_code'], author_is_admin=is_admin(author)) }}
{% else %}
{{ language_name(gist['language']) }}
{{ gist['source_code'] }}
{% endif %}
{% if user %} {% set _type = "gist" %}{% set _uid = gist['uid'] %}{% set _my_vote = my_vote %}{% set _count = star_count %}{% set _btn_class = "gist-star-btn" %}{% include "_star_vote.html" %} {% endif %} {% set _type = "gist" %}{% set _uid = gist['uid'] %}{% set _bookmarked = bookmarked %}{% include "_bookmark_button.html" %} {% set _type = "gist" %}{% set _uid = gist['uid'] %}{% set _owner = gist['user_uid'] %}{% set _owner_name = (author or {}).get('username', '') %}{% set _class = "gist-star-btn" %}{% include "_report_button.html" %} {% if is_owner %} {% endif %} {% if is_owner or is_admin(user) %}
{% endif %} {% set _type = "gist" %}{% set _uid = gist['uid'] %}{% set _reactions = reactions %}{% include "_reaction_bar.html" %}
{% if is_owner %} {% call modal('edit-gist-modal', 'Edit Gist', wide=true) %}
{% include "_attachment_form.html" %}
{% endcall %} {% endif %} {% with target_uid=gist['uid'], target_type="gist" %} {% include "_comment_section.html" %} {% endwith %}
{% endblock %} {% block extra_js %} {% endblock %}