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
This commit is contained in:
Ilya Shakhat 2013-07-12 20:03:52 +04:00
parent cef22af5d6
commit 6bc6052968
2 changed files with 5 additions and 2 deletions

View File

@ -33,6 +33,7 @@
<div> <div>
<h4>{{ rec.date|datetimeformat }} to <a href="https://launchpad.net/{{ rec.module }}">{{ rec.module }}</a> <h4>{{ rec.date|datetimeformat }} to <a href="https://launchpad.net/{{ rec.module }}">{{ rec.module }}</a>
</h4> </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='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> <div style="padding-left: 2em;"><span style="color: green">+ {{ rec.lines_added }}</span>
<span style="color: red">- {{ rec.lines_deleted }}</span></div> <span style="color: red">- {{ rec.lines_deleted }}</span></div>

View File

@ -48,9 +48,9 @@
{% else %} {% else %}
{{ rec.author }} {{ rec.author }}
{% endif %} {% endif %}
{% if rec.company %} {% if rec.company_name %}
( (
{{ rec.company|link('/companies/' + rec.company)|safe }} {{ rec.company_name|link('/companies/' + rec.company_name)|safe }}
) )
{% endif %} {% endif %}
<em>{{ rec.date|datetimeformat }}</em> <em>{{ rec.date|datetimeformat }}</em>
@ -58,6 +58,8 @@
<div><b>{{ rec.subject }}</b></div> <div><b>{{ rec.subject }}</b></div>
<div style="white-space: pre-wrap;">{{ rec|commit_message|safe }}</div> <div style="white-space: pre-wrap;">{{ rec|commit_message|safe }}</div>
<div><span style="color: green">+ {{ rec.lines_added }}</span>
<span style="color: red">- {{ rec.lines_deleted }}</span></div>
</div> </div>
</div> </div>
{% endfor %} {% endfor %}