<commit_before>{% macro card_overview(card, request) -%}
<a href="{{ url_for('card', key=card.key) }}" title="{{ card.key }} -- {{ card.title }}{% if card.blocked %} BLOCKED: {{ card.blockers[0].reason }}{% endif %}">
    <span class="card_icon">
        {% if card.blocked %}
        <span class="blocked">&#9635;</span>
        {% elif card.cycle_over_goal %}
        <span class="cycle_over_goal">&#9724;</span>
        {% elif card.cycle_in_goal %}
        <span class="cycle_in_goal">&#9724;</span>
        {% else %}
        &#9724;
        {% endif %}
    </span>
</a>
{%- endmacro %}

{% macro card_detail(card, request) -%}
    <div class="card_on_board {% if card.cycle_over_goal %}cycle_over_goal{% elif card.cycle_in_goal %}cycle_in_goal{% endif %} card_type_{{ card.service_class|slugify }}" id="card_{{ card.key }}">
        <div class="card_key"><span>{{ card.key }}</span>
            {% if card.done_date %}
                - {{ card.cycle_time }}d
            {% elif card.start_date %}
                - {{ card.current_cycle_time() }}d
            {% elif card.backlog_date %}
                {% if card.priority %}
                - #{{ card.priority }}
                {% endif %}
            {% endif %}
        </div>

        <p class="title"><a href="{{ url_for('card', key=card.key) }}">{{ card.ticket_system_data.get('summary', card.title) }}</a></p>

        {% if card.blocked %}
        <div class="blocker">
            <p>{{ card.blockers[0].reason }}</p>
        </div>
        {% endif %}

        {% set assignee = card.ticket_system_data.get('assignee', '') %}
        <p class="assignee">
            {{ card.service_class }}
            {% if assignee %}<br /><a href="{{ url_for('person', name=assignee) }}">{{ assignee }}{% endif %}</a>
        </p>

    </div>
    </a>
{%- endmacro %}

{% macro board(board, request) -%}
<table class="board">
<tr>
  {% for header in board.headers %}
    <th>{{ header }}</th>
  {% endfor %}
</tr>

{% for row in board %}
<tr>
{% for cell in row %}
    {% if cell.get('label') %}
        <td class="team">{{ cell['label'] }}</td>
    {% else %}
        <td class="cards">
        {% for card in cell['cards'] %}
            {% if board.teams|length > 1 %}
                {{ card_overview(card, request) }}
            {% else %}
                {{ card_detail(card, request) }}
            {% endif %}
        {% endfor %}
    </td>
    {% endif %}
{% endfor %}

</tr>
{% endfor %}

</table>

{%- endmacro %}<commit_msg>Showing the oldest blocker in card detail macro. Fixes #67<commit_after>{% macro card_overview(card, request) -%}
<a href="{{ url_for('card', key=card.key) }}" title="{{ card.key }} -- {{ card.title }}{% if card.blocked %} BLOCKED: {{ card.blockers[0].reason }}{% endif %}">
    <span class="card_icon">
        {% if card.blocked %}
        <span class="blocked">&#9635;</span>
        {% elif card.cycle_over_goal %}
        <span class="cycle_over_goal">&#9724;</span>
        {% elif card.cycle_in_goal %}
        <span class="cycle_in_goal">&#9724;</span>
        {% else %}
        &#9724;
        {% endif %}
    </span>
</a>
{%- endmacro %}

{% macro card_detail(card, request) -%}
    <div class="card_on_board {% if card.cycle_over_goal %}cycle_over_goal{% elif card.cycle_in_goal %}cycle_in_goal{% endif %} card_type_{{ card.service_class|slugify }}" id="card_{{ card.key }}">
        <div class="card_key"><span>{{ card.key }}</span>
            {% if card.done_date %}
                - {{ card.cycle_time }}d
            {% elif card.start_date %}
                - {{ card.current_cycle_time() }}d
            {% elif card.backlog_date %}
                {% if card.priority %}
                - #{{ card.priority }}
                {% endif %}
            {% endif %}
        </div>

        <p class="title"><a href="{{ url_for('card', key=card.key) }}">{{ card.ticket_system_data.get('summary', card.title) }}</a></p>

        {% if card.blocked %}
        <div class="blocker">

            <p>{{ card.blockers[-1].reason }}</p>
        </div>
        {% endif %}

        {% set assignee = card.ticket_system_data.get('assignee', '') %}
        <p class="assignee">
            {{ card.service_class }}
            {% if assignee %}<br /><a href="{{ url_for('person', name=assignee) }}">{{ assignee }}{% endif %}</a>
        </p>

    </div>
    </a>
{%- endmacro %}

{% macro board(board, request) -%}
<table class="board">
<tr>
  {% for header in board.headers %}
    <th>{{ header }}</th>
  {% endfor %}
</tr>

{% for row in board %}
<tr>
{% for cell in row %}
    {% if cell.get('label') %}
        <td class="team">{{ cell['label'] }}</td>
    {% else %}
        <td class="cards">
        {% for card in cell['cards'] %}
            {% if board.teams|length > 1 %}
                {{ card_overview(card, request) }}
            {% else %}
                {{ card_detail(card, request) }}
            {% endif %}
        {% endfor %}
    </td>
    {% endif %}
{% endfor %}

</tr>
{% endfor %}

</table>

{%- endmacro %}
{'fraction_non_alphanumeric': 0.21087085895655625, 'fraction_numerical': 0.007934933544931562, 'mean_word_length': 2.1297330850403475, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '508983', 'n_tokens_mistral': 1875, 'n_tokens_neox': 1611, 'n_words': 335}