{% extends 'base.html' %}
{% load dpagination i18n %}

{% block breadcrumb %}
    <ol class="breadcrumb">
        <li><span class="glyphicon glyphicon-home"></span></li>
        <li><a href="{% url 'messenger:messengers_list' %}">{% trans 'Messengers' %}</a></li>
        <li class="active">{% trans 'Viber subscribers' %}</li>
    </ol>
{% endblock %}

{% block page-header %}
    {% trans 'Viber subscribers' %}
{% endblock %}

{% block main %}
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th class="col-sm-4">{% trans 'uid' %}</th>
                <th class="col-sm-3">{% trans 'Name' %}</th>
                <th class="col-sm-4">{% trans 'Account' %}</th>
            </tr>
            </thead>
            <tbody>
            {% for subscriber in object_list %}
                <tr>
                    <td>{{ subscriber.uid }}</td>
                    <td>{{ subscriber.name }}</td>
                    <td><a href="{{ subscriber.account.get_absolute_url }}">{{ subscriber.account.get_full_name }}</a></td>
                </tr>
            {% empty %}
                <tr>
                    <td colspan="3">{% trans 'Subscribers was not found' %}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}
