{% extends "reports/base_report.html" %}
{% import '_macros/activity_log.html' as activity_log %}
{% import '_macros/contribution_summary.html' as contribution_summary %}
{% import '_macros/user_profile.html' as user_profile %}

{% block title %}
{{ user.user_name }} activity in OpenStack
{% endblock %}

{% block scripts %}
    <script type="text/javascript">
        $(document).ready(function () {
            renderPunchCard("punch_card", [{{ punch_card_data }}]);
        });
    </script>
{% endblock %}

{% block content %}
<h1>{{ user.user_name }} activity report</h1>

{{ user_profile.show_user_profile(user_id=user.user_id) }}
{{ contribution_summary.show_contribution_summary(user_id=user.user_id) }}

<div id="punch_card" style="width: 100%; height: 350px;"></div>

{{ activity_log.show_activity_log(user_id=user.user_id, show_user_gravatar=false, gravatar_size=64) }}

{% endblock %}
