Add copayer list at sidebar, separate snippet and clean video controller code
This commit is contained in:
parent
b17bc2310d
commit
0c3709ceee
5 changed files with 104 additions and 36 deletions
28
views/includes/peer-list.html
Normal file
28
views/includes/peer-list.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<div ng-controller="VideoController">
|
||||
Icon Copayers
|
||||
{{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}}
|
||||
|
||||
<ul class="copayer-list" ng-repeat="copayer in copayers">
|
||||
<li>
|
||||
<video
|
||||
ng-if="hasVideo(copayer)"
|
||||
peer="{{copayer}}" avatar autoplay
|
||||
ng-class="isConnected(copayer) ? 'online' : 'offline'"
|
||||
ng-src="{{getVideoURL(copayer)}}"></video>
|
||||
|
||||
<img
|
||||
class="no-video"
|
||||
ng-if="!hasVideo(copayer)"
|
||||
ng-class="isConnected(copayer) ? 'online' : 'offline'"
|
||||
src="./img/satoshi.gif"
|
||||
alt="{{copayer}}">
|
||||
|
||||
<span
|
||||
tooltip="ID: {{copayer.peerId}}"
|
||||
tooltip-placement="bottom">
|
||||
<span ng-show="copayer.index == 0">you</span>
|
||||
<span ng-show="copayer.index > 0">{{copayer.nick}}</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue