{%- extends 'layout.html' %} {%- if root %} {%- set view_specific_form = 'view_other_board' %} {%- set view_specific_func = 'view_specific_other_board' %} {%- set view_set_form = 'view_other_set' %} {%- else %} {%- set view_specific_form = 'view_board' %} {%- set view_specific_func = 'view_specific_board' %} {%- set view_set_form = 'view_set' %} {%- endif %} {% macro mutual_prefix() %} {% if not root %}
You have {{ boards|length }} boards.
{% endif %} {% endmacro %} {% macro board_badges(board) %} Solution Problem {% endmacro %} {% macro board_details(board) %}

{{ board.block_width }} × {{ board.block_height }} board, created on {{ board.create_time.strftime('%H:%M:%S %d.%m.%Y') }}. {%- if root -%}
[Created by {{ board.user.display }}] {%- endif -%}

{% endmacro %} {% macro single_prefix() %}

Select a Board


I want to check board #.

{% endmacro %} {% macro multiple_prefix() %} {% endmacro %} {% macro single_list_prefix() %}

Alternatively, you may select a board to watch from a list:

{% endmacro %} {% macro multiple_list_prefix() %}

Please select the boards you would like to see:

{% endmacro %} {% macro multiple_board_in_list(board) %}
{{ board_badges(board) }}

{{ board_details(board) }}
{% endmacro %} {% macro multiple_list_postfix() %}
{% endmacro %} {% if many %} {% set prefix = multiple_prefix %} {% set list_prefix = multiple_list_prefix %} {% set board_in_list = multiple_board_in_list %} {% set list_postfix = multiple_list_postfix %} {% else %} {% set prefix = single_prefix %} {% set list_prefix = single_list_prefix %} {% set board_in_list = single_board_in_list %} {% set list_postfix = single_list_postfix %} {% endif %} {%- block title %}View Board{% endblock %} {%- block body %} {{ mutual_prefix() }} {{ prefix() }}
{{ list_prefix() }} {%- for board in boards %} {{ board_in_list(board) }} {%- endfor %} {{ list_postfix() }}
{%- endblock %}