Add handling of twitter avatars: if they do not load, then a default image will be used
This commit is contained in:
parent
f20e1d9c54
commit
78f6523068
4 changed files with 77 additions and 60 deletions
14
static/directives/twitter-view.html
Normal file
14
static/directives/twitter-view.html
Normal 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>
|
Reference in a new issue