stackalytics/dashboard/templates/engineer_details.html
Ilya Shakhat 6bc6052968 Missing fields are added to commit details
* Added diff stats and company name to module details screen.
* Added subject line to engineer details screen.

Fixes bug 1200645

Change-Id: If579173e83e40feb473600137060ed2076e53ba4
2013-07-12 20:03:52 +04:00

96 lines
2.9 KiB
HTML

{% extends "layout.html" %}
{% block title %}
{{ user.user_name }}
{% endblock %}
{% block scripts %}
<script type="text/javascript">
chartAndTableRenderer("/data/modules", "right_list", "right_chart", "/modules/", {launchpad_id: "{{ launchpad_id }}" });
timelineRenderer({launchpad_id: "{{ launchpad_id }}" })
</script>
{% endblock %}
{% block left_frame %}
<div style='float: left;'>
<img src="{{ user.emails[0]|gravatar(size=64) }}">
</div>
<div style='margin-left: 90px;'>
<h2 style='margin-bottom: 0.5em;'>{{ user.user_name }}</h2>
{% if user.companies %}
<div>Company: {{ user.companies[-1].company_name|link('/companies/' + user.companies[-1].company_name)|safe }}</div>
{% endif %}
<div>Launchpad: <a href="https://launchpad.net/~{{ launchpad_id }}">{{ launchpad_id }}</a></div>
</div>
<h3>Commits history</h3>
{% if not commits %}
<div>There are no commits for selected release or project type.</div>
{% endif %}
{% for rec in commits %}
<div>
<h4>{{ rec.date|datetimeformat }} to <a href="https://launchpad.net/{{ rec.module }}">{{ rec.module }}</a>
</h4>
<div style='font-weight: bold; padding-left: 2em;'>{{ rec.subject }}</div>
<div style='white-space: pre-wrap; padding-left: 2em;'>{{ rec|commit_message|safe }}</div>
<div style="padding-left: 2em;"><span style="color: green">+ {{ rec.lines_added }}</span>
<span style="color: red">- {{ rec.lines_deleted }}</span></div>
</div>
{% endfor %}
{% endblock %}
{% block right_frame %}
{% if commits %}
<h2>Contribution by modules</h2>
<div id="right_chart" style="width: 100%; height: 350px;"></div>
<table id="right_list" class="display">
<thead>
<tr>
<th>#</th>
<th>Module</th>
<th>{{ metric_label }}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="spacer"></div>
<h3>Commit overview</h3>
{% if blueprints %}
<div>Blueprints:
<ol>
{% for rec in blueprints %}
<li>
<a href="https://blueprints.launchpad.net/{{ rec['module'] }}/+spec/{{ rec['id'] }}">{{ rec['id'] }}</a>
<small>{{ rec['module'] }}</small>
</li>
{% endfor %}
</ol>
</div>
{% endif %}
{% if bugs %}
<div>Bugs:
<ol>
{% for rec in bugs %}
<li>
<a href="https://bugs.launchpad.net/bugs/{{ rec['id'] }}">{{ rec['id'] }}</a>
</li>
{% endfor %}
</ol>
</div>
{% endif %}
<div>Total commits: <b>{{ commits|length }}</b></div>
<div>Total LOC: <b>{{ loc }}</b></div>
{% endif %}
{% endblock %}