Add handling of twitter avatars: if they do not load, then a default image will be used

This commit is contained in:
Joseph Schorr 2014-05-08 19:52:21 -04:00
parent f20e1d9c54
commit 78f6523068
4 changed files with 77 additions and 60 deletions

View file

@ -0,0 +1,14 @@
<blockquote class="twitter-tweet" data-conversation="none" lang="en">
<p>
<span ng-transclude></span>
</p>
<div class="attribute">
<span class="info-wrap">
<span class="avatar"><img ng-src="{{ avatarUrl }}" fallback-src="/static/img/default-twitter.png"></span>
<span class="info">
<span class="author">{{ authorName }} (@{{authorUser}})</span>
<a class="reference" ng-href="{{ messageUrl }}">{{ messageDate }}</a>
</span>
</span>
</div>
</blockquote>