btorrent/views/download.jade

69 lines
3.4 KiB
Text
Raw Normal View History

2016-01-12 05:38:42 +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-01-12 05:38:42 +00:00
.row
2016-03-11 07:57:25 +00:00
form.no-margin(ng-submit="addMagnet()")
2016-01-12 05:38:42 +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-01-12 05:38:42 +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-01-12 05:38:42 +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")
.four.columns(style="overflow: auto")
2016-02-16 17:06:08 +00:00
h4 Information
table.u-full-width
tbody
tr
td Name
td {{$root.selectedTorrent.name}}
tr
td Size
td {{$root.selectedTorrent.length | pbytes}}
tr
td Completed
td {{$root.selectedTorrent.progress | progress}} ({{$root.selectedTorrent.downloaded | pbytes}})
tr
td Peers
td {{$root.selectedTorrent.numPeers}}
tr
2016-02-16 17:06:08 +00:00
td ↓ Speed
td {{$root.selectedTorrent.downloadSpeed | pbytes:1}}
tr
td ETA
td {{$root.selectedTorrent.timeRemaining | humanTime}}
.four.columns
h4 Files
2016-02-16 17:07:52 +00:00
table.u-full-width(style="margin: auto")
2016-01-12 05:38:42 +00:00
thead
tr
th Name
th Size
th Priority
tbody
2016-03-11 07:57:25 +00:00
tr.files(ng-repeat="file in $root.selectedTorrent.files")
td(ng-hide="file.done") {{file.name}}
td(ng-show="file.done")
a(ng-href="{{file.url}}" download="{{file.name}}" target="_self" ng-show="file.done") {{file.name}}
2016-01-12 05:38:42 +00:00
td {{file.length | pbytes}}
td
2016-03-11 07:57:25 +00:00
select.no-margin(name="{{file.name}}Priority" ng-model="file.priority" ng-init="file.priority = '0'" ng-change="$root.changePriority(file)")
option(value="1") High Priority
option(value="0" selected="") Low Priority
option(value="-1") Don't download
2016-02-16 17:06:08 +00:00
h5 ↑ Click a file to download it
.four.columns
h4 Share
2016-02-02 17:20:39 +00:00
ul(style="text-align: justify")
li
2016-03-11 07:57:25 +00:00
a(ng-href="#{{$root.selectedTorrent.infoHash}}" target="_blank") βTorrent
2016-02-02 17:20:39 +00:00
li
2016-03-11 07:57:25 +00:00
a(ng-href="{{$root.selectedTorrent.magnetURI}}" target="_blank") Magnet URI
2016-02-02 17:20:39 +00:00
li
2016-03-11 07:57:25 +00:00
a(ng-href="{{$root.selectedTorrent.safeTorrentFileURL}}" target="_self" download="{{$root.selectedTorrent.fileName}}") .torrent
2016-02-02 17:20:39 +00:00
li
strong Hash:
| {{$root.selectedTorrent.infoHash}}