btorrent/views/view.jade

16 lines
1.2 KiB
Text
Raw Normal View History

2016-02-28 05:47:19 +00:00
.container
2016-03-11 07:57:25 +00:00
div(ng-hide="$root.client.torrents.length != 0" style="vertical-align: middle; text-align: center")
2016-02-28 05:47:19 +00:00
.row
2016-03-11 07:57:25 +00:00
form.no-margin(ng-submit="addMagnet()")
2016-02-28 05:47:19 +00:00
label Enter magnet, hash or http(s) .torrent
2016-03-11 07:57:25 +00:00
input(type="text" placeholder="magnet, hash or http(s) .torrent" ng-model="torrentInput" ng-disabled="$root.disabled" style="width: 50%")
//button(ng-click="addMagnet()" ng-disabled="!torrentInput.length || $root.disabled" ng-class="{"button-primary": torrentInput.length}")
2016-02-28 05:47:19 +00:00
i.fa.fa-download
| Download
.row
label or...
2016-03-11 07:57:25 +00:00
button(type="file" ngf-select="$root.openTorrentFile($file)" ng-disabled="$root.disabled" ng-class="{'button-primary': !$root.disabled}")
2016-02-28 05:47:19 +00:00
i.fa.fa-folder-open
| Open torrent file
2016-03-11 07:57:25 +00:00
.div(ng-if="selectedTorrent" style="text-align: center")
2016-02-28 05:47:19 +00:00
| Downloaded {{$root.selectedTorrent.downloaded | pbytes}}/{{$root.selectedTorrent.length | pbytes}} ({{$root.selectedTorrent.progress | progress}}) at {{$root.selectedTorrent.downloadSpeed | pbytes:1}} from {{$root.selectedTorrent.numPeers}} peers. ETA: {{$root.selectedTorrent.timeRemaining | humanTime}}