{% extends "bee_django_mission/base.html" %}
{% load bee_django_mission_filter %}

{% block content %}
    {% include 'bee_django_mission/logo.html' %}
    {% include 'bee_django_mission/nav.html' %}

    <div class="btn-group" role="group" style="margin-top: 20px;">
        <a class="btn btn-success active">周任务</a>
        <a class="btn btn-default"
           href="{% url 'bee_django_mission:user_line_unlimited' user_id=user.id %}">里程</a>
    </div>
    <div class="row" style="margin: 10px;">
        <div class="col-md-8 col-xs-12">{% include 'bee_django_mission/user/mission/include/list.html' %}</div>
        <div class="col-md-4 col-xs-12" style="background-color: #efefef;min-height: 300px;position: relative">
            <div style="height: 40px;line-height: 40px;">周任务完成排行榜</div>
            {% if user_stage %}
                <div style="position: absolute;top: 10px;right: 10px" class="text-right">
                    <a href="{% url 'bee_django_mission:user_stage_finish_rank_list' line_id=user_stage.user_line.line.id %}">全部</a>
                </div>
            {% endif %}
            <table class="table">
                {% for f in finish_rank_list %}
                    <tr>
                        <td>{{ f.user.first_name }}</td>
                        <td>{{ f.finish_count }}</td>
                    </tr>
                {% endfor %}
            </table>
        </div>
    </div>



{% endblock %}
