Add avatar url customization

This commit is contained in:
Michael Crawford
2015-12-22 17:20:32 -05:00
parent 3dd25f3b87
commit 73c362fa52
7 changed files with 25 additions and 8 deletions

View File

@@ -16,7 +16,7 @@
{% if commit.body is not empty %}
<p>{{ commit.body | nl2br }}</p>
{% endif %}
<img src="https://gravatar.com/avatar/{{ commit.author.email | lower | md5 }}?s=32" class="pull-left space-right" />
<img src="{{ avatar(commit.author.email, 32) }}" class="pull-left space-right" />
<span>
<a href="mailto:{{ commit.author.email }}">{{ commit.author.name }}</a> authored on {{ commit.date | format_date }}
{% if commit.author.email != commit.commiter.email %}