Skip to content

Commit

Permalink
templates: Drop avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
wbnns committed Mar 7, 2017
1 parent 77fd49b commit 9b93684
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions _plugins/contributors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ def contributors(repo, aliases)
x = {}
x['name'] = name
x['contributions'] = c['contributions']
# Set avatar_url when available
if c.has_key?('avatar_url') and c['avatar_url'].is_a?(String) and /^https:\/\/avatars1\.githubusercontent\.com\/u\/[0-9]{1,10}\?v=[0-9]{1,2}$/.match(c['avatar_url'])
x['avatar_url'] = c['avatar_url'] + '&size=16'
end
# Set login when available
if c.has_key?('login') and c['login'].is_a?(String) and /^[A-Za-z0-9\-]{1,150}$/.match(c['login'])
x['login'] = c['login']
Expand Down
1 change: 0 additions & 1 deletion _templates/about-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ <h3 id="github">{% translate github %}</h3>
<div class="contributors">
{% for c in site.sitecontributors %}
<div>
<div>{% if c.avatar_url %}<img src="{{c.avatar_url}}" alt="icon" />{% else %}<img alt="icon" />{% endif %}</div>
<div><a{% if c.login %} href="https://github.com/{{c.login}}"{% endif %}>{{ c.name | htmlescape }}</a></div>
<div>({{ c.contributions }})</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion _templates/development.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ <h2 id="bitcoin-core-contributors">{% translate contributors %}</h2>
<div class="contributors">
{% for c in site.corecontributors %}
<div>
<div>{% if c.avatar_url %}<img src="{{c.avatar_url}}" alt="icon" />{% else %}<img alt="icon" />{% endif %}</div>
<div><a{% if c.login %} href="https://github.com/{{c.login}}"{% endif %}>{{ c.name | htmlescape }}</a></div>
<div>({{ c.contributions }})</div>
</div>
Expand Down

0 comments on commit 9b93684

Please sign in to comment.