{% macro render_field(field, after="") %}
{{ field.label }}{{ field(**kwargs)|safe }} {% if after %} {{ after }}{% endif %} {% if field.errors %} {% endif %}
{% endmacro %} {% macro render_bootstrap_field(field, field_description="", formclass="") %}
{% set formclasses = "form-control"%} {% if field.errors %} {% set formclasses = formclasses + " form-control-error" %} {% endif %} {% if field.type == "SelectField" %} {% set formclasses = formclasses + " c-select" %} {% endif %} {% if field.type == 'BooleanField' %} {% set formclasses = formclasses + " checkbox-inline" %}
{% if field_description %} {{ field_description }} {% endif %} {% else %} {{ field.label }} {{ field(class_=formclasses)|safe }}
{% if field_description %} {{field_description}} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }}  {% endfor %} {% endif %}
{% endif %}
{% endmacro %} (class_="c-select") {% macro render_field_invert(field, after="") %}
{{ field(**kwargs)|safe }}{{ field.label }} {% if after %} {{ after }}{% endif %} {% if field.errors %} {% endif %}
{% endmacro %} {% macro render_field_in_row(field, after="") %} {{ field.label }} {{ field(**kwargs)|safe }} {% if after %} {{ after }}{% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% endmacro %} {% macro render_field_in_cell(field, after="") %} {{ field.label }} {{ field(**kwargs)|safe }} {% if after %} {{ after }}{% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% endmacro %} {% macro render_field_in_list(field) %}
  • {{ field.label }}
  • {{ field(**kwargs)|safe }}
  • {% if field.errors %} {% for error in field.errors %}
  • {{ error }}
  • {% endfor %} {% endif %} {% endmacro %} {% macro show_comment(comment, id, repo, username, issueid, form) %}
    {{ comment.user.default_email | avatar(16) | safe }} {{ comment.user.user }} {{ comment.date_created | humanize}}
    {%- if id == 0 -%} {{ comment.content | markdown | noJS | safe }} {%- else -%} {{ comment.comment | markdown | noJS | safe }} {%- endif -%}
    {% if comment.edited_on %} Edited {{ comment.edited_on | humanize }} by {{ comment.editor.username }} {% endif %}
    {% if id != 0 and g.fas_user and comment.parent.status in [True, 'Open'] %} {% endif %} {% if id != 0 and g.fas_user and g.repo_admin or ( comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %} {% endif %} {% if id != 0 and g.fas_user and g.repo_admin or ( comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %} {% endif %}
    {% endmacro %} {% macro show_initial_comment(comment, username, repo, issueid, form) %}
    {{ comment.content | markdown | noJS | safe }}
    {% if g.fas_user %} {% endif %} {% if g.repo_admin or ( g.fas_user and g.fas_user.username == comment.user.username) %} {% endif %} {% if g.repo_admin %} {% endif %}
    {% endmacro %}