diff --git a/progit/templates/pull_request.html b/progit/templates/pull_request.html index 3f75063..d7fdb81 100644 --- a/progit/templates/pull_request.html +++ b/progit/templates/pull_request.html @@ -19,23 +19,35 @@ {% if pull_request %} -
Author | -- {{ diff_commits[loop.index - 1].author.name }} - {{ '<' + diff_commits[loop.index - 1].author.email + '>' }} - - {{ diff_commits[loop.index - 1].commit_time | format_ts }} - | -
Committer | -- {{ diff_commits[loop.index - 1].committer.name }} - {{ '<' + diff_commits[loop.index - 1].committer.email + '>' }} - - {{ diff_commits[loop.index - 1].commit_time | format_ts }} - | -
Parent | -
- {% for parent in diff_commits[loop.index - 1].parents %}
-
+
+ + {{ splitted_message[0] }} + (commit: {{ commitid|short }} + - tree) + {% if splitted_message|length > 1 %} + + {% endif %} +- {{ parent.oid.hex }} -- {% endfor %} - |
-
- {{ diff_commits[loop.index - 1].message }} -
- {% autoescape false %} - {{ html_diff | format_loc(diff_commits[loop.index - 1], pull_request, - index=loop.index) }} - {% endautoescape %} + +Author | ++ {{ commit.author.name }} {{ '<' + commit.author.email + '>' }} + - {{ commit.commit_time | format_ts}} + | +
---|---|
Committer | ++ {{ commit.committer.name }} {{ '<' + commit.committer.email + '>' }} + - {{ commit.commit_time | format_ts }} + | +
Parent | +
+ {% for parent in commit.parents %}
+
+ {{ parent.oid.hex }}
+ + {% endfor %} + |
+
Changes | +
+
|
+
Binary diffs cannot be rendered.
+ {% else %} + {% autoescape false %} + {{ patch|patch_to_diff|html_diff|format_loc(diff_commits[loop.index - 1], pull_request, + index=loop.index)}} + {% endautoescape %} + {% endif %} +