{% extends "ohlhafv/base.html" %}

{% load static %}
{% load i18n %}

{% block content %}
<div>
    <h3>{% trans "All challenges" %}</h3>
</div>

<div>
    <h6 style="padding-bottom: 1rem">{% trans "Total challenges:" %} {{ challenge_count }}</h6>
</div>

{% for challenge in challenges %}
<div class="card">
    <h4 class="card-header">{{ challenge.challenger }} vs. {{ challenge.victim }}</h4>
    <div class="card-block">
        <h5 class="card-subtitle mb-2">{{ challenge.get_series_display }}</h5>
        <p class="card-text">{{ challenge.message|linebreaks|urlize }}</p>
    </div>
</div>
{% endfor %}

{% endblock content %}