
* Added new report that shows activity for a given user * Refactored code that calculates activity log and contribution summary * Implemented punch card that shows when user is active mostly Implements blueprint review-punchcard Change-Id: I17af4edb65e49c934c503c5ab6e5d2b6212780b0
36 lines
1.0 KiB
HTML
36 lines
1.0 KiB
HTML
{% extends "reports/base_report.html" %}
|
|
|
|
{% block title %}
|
|
{{ user.user_name }} activity report
|
|
{% endblock %}
|
|
|
|
{% block head %}
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
render_punch_card("punch_card", [{{ punch_card_data }}]);
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>{{ user.user_name }} activity report</h1>
|
|
|
|
<h2>Contribution summary</h2>
|
|
<ul>
|
|
<li>Total commits: {{ contribution.commit_count }}</li>
|
|
<li>Total LOC: {{ contribution.loc }}</li>
|
|
<li>Review stat (-2, -1, +1, +2): {{ contribution.marks[-2] }}, {{ contribution.marks[-1] }},
|
|
{{ contribution.marks[1] }}, {{ contribution.marks[2] }}</li>
|
|
<li>Draft Blueprints: {{ contribution.drafted_blueprint_count }}</li>
|
|
<li>Completed Blueprints: {{ contribution.completed_blueprint_count }}</li>
|
|
<li>Emails: {{ contribution.email_count }}</li>
|
|
</ul>
|
|
|
|
<div id="punch_card" style="width: 100%; height: 350px;"></div>
|
|
|
|
{% if activity %}
|
|
{{ show_activity_log(activity, false) }}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|