Skip to content
Permalink
Browse files

Fixing missing avatar with default one

  • Loading branch information
Depado committed Feb 7, 2016
1 parent 596dd44 commit 4cc51595b046203a8e32d8c2e0e70d570383e046
Showing with 2 additions and 2 deletions.
  1. BIN assets/img/anon.jpg
  2. +2 −2 templates/index.tmpl
BIN +35.9 KB assets/img/anon.jpg
Binary file not shown.
@@ -34,7 +34,7 @@
{{ range $i, $e := .LastBuilds }}
<div class="event">
<div class="label">
<img src="{{ .AuthorAvatar }}" alt="drone">
<img src="{{ if ne .AuthorAvatar "" }}{{ .AuthorAvatar }}{{ else }}/static/img/anon.jpg{{ end }}" alt="avatar">
</div>
<div class="content">
<div class="summary">
@@ -74,7 +74,7 @@
{{ range $i, $e := .LastCommits }}
<div class="event">
<div class="label">
<img src="{{ .Author.AvatarURL }}" alt="avatar">
<img src="{{ if ne .Author.AvatarURL "" }}{{ .Author.AvatarURL }}{{ else }}/static/img/anon.jpg{{ end }}" alt="avatar">
</div>
<div class="content">
<div class="summary">

0 comments on commit 4cc5159

Please sign in to comment.
You can’t perform that action at this time.