mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Show committer if it differs from author
It is quite useful sometimes to see that someone else (not you) has pushed commit to remote. This change adds "C committed on D" phrase right after "A authored on B" if author and committer are not the same person (judging from email address).
This commit is contained in:
@@ -17,7 +17,13 @@
|
||||
<p>{{ commit.body | nl2br }}</p>
|
||||
{% endif %}
|
||||
<img src="https://gravatar.com/avatar/{{ commit.author.email | lower | md5 }}?s=32" class="pull-left space-right" />
|
||||
<span><a href="mailto:{{ commit.author.email }}">{{ commit.author.name }}</a> authored on {{ commit.date | format_date }}<br />Showing {{ commit.changedFiles }} changed files</span>
|
||||
<span>
|
||||
<a href="mailto:{{ commit.author.email }}">{{ commit.author.name }}</a> authored on {{ commit.date | format_date }}
|
||||
{% if commit.author.email != commit.commiter.email %}
|
||||
• <a href="mailto:{{ commit.commiter.email }}">{{ commit.commiter.name }}</a> committed on {{ commit.commiterDate | format_date }}
|
||||
{% endif %}
|
||||
<br />Showing {{ commit.changedFiles }} changed files
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user