{% macro comments_table(institute, case, comments, variant_id=None) %} {% for comment in comments %} {% endfor %}
User Comment
{{ comment.user_name }} on {{ comment.created_at.date() }} {% if comment.level == 'global' %} GLOBAL {% endif %} {% if comment.created_at < case.updated_at %} OLD {% endif %} {% if comment.created_at < comment.updated_at %} edited {% endif %} {{ comment.content }}
{% endmacro %} {% macro variant_related_comments_table(variant, case) %} {% for comment in variant.comments %} {% endfor %} {% endmacro %} {% macro comments_panel(institute, case, current_user, comments, variant_id=None) %}
{% set comments = comments|list %}
Comments ({{ comments|length }})
{% for comment in comments %}
{{ comment.content }}
{{ comment.user_name }} on {{ comment.created_at.date() }} {% if comment.level == 'global' %} GLOBAL {% endif %} {% if comment.created_at < case.updated_at %} OLD {% endif %} {% if comment.created_at < comment.updated_at %} edited {% endif %} {% if comment.user_id == current_user.email %} {% endif %}
{{ edit_comment(institute, case, current_user, comment, loop.index) }} {% endfor %}
{% endmacro %} {% macro edit_comment(institute, case, current_user, comment, index) %}
{% endmacro %} {% macro activity_panel(events) %}
 Activity
{% endmacro %} {% macro pedigree_panel(case) %}
{% if case.individuals|length == 1 %}

Single sample case: {{ case.individuals.0.display_name }}

{% else %}
{{ case.madeline_info|safe }}
{% endif %}
{% endmacro %} {% macro db_table_external_stylesheets() %} {% endmacro %} {% macro db_table_external_scripts() %} {% endmacro %}