{% set extra = event.extra %}
<div class="dealflow-timeline-detail">
    <dl class="dl-horizontal">
        {% if extra.stage is not empty %}
            <dt>{{ 'dealflow.timeline.stage'|trans }}</dt>
            <dd>{{ extra.stage }}</dd>
        {% endif %}

        {% if extra.amount is not empty %}
            <dt>{{ 'dealflow.timeline.amount'|trans }}</dt>
            <dd>{{ extra.currency }} {{ extra.amount|number_format(2) }}</dd>
        {% endif %}

        <dt>{{ 'dealflow.timeline.status'|trans }}</dt>
        <dd>
            {% if extra.status == 'open' %}
                <span class="label label-info dealflow-status-badge">{{ extra.status|capitalize }}</span>
            {% elseif extra.status == 'won' %}
                <span class="label label-success dealflow-status-badge">{{ extra.status|capitalize }}</span>
            {% elseif extra.status == 'lost' %}
                <span class="label label-danger dealflow-status-badge">{{ extra.status|capitalize }}</span>
            {% else %}
                <span class="label label-default dealflow-status-badge">{{ extra.status|capitalize }}</span>
            {% endif %}
        </dd>

        {% if extra.role is not empty %}
            <dt>{{ 'dealflow.timeline.role'|trans }}</dt>
            <dd>{{ extra.role }}</dd>
        {% endif %}
    </dl>
</div>
