2016-01-04 06:20:11 +00:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.four.columns
|
2016-03-11 07:57:25 +00:00
|
|
|
input.u-full-width(type="text" placeholder="magnet, hash or http(s) .torrent" ng-model="torrentInput" ng-disabled="$root.disabled")
|
2016-01-04 06:20:11 +00:00
|
|
|
.two.columns.download-button
|
2016-03-11 07:57:25 +00:00
|
|
|
button(ng-click="addMagnet()" ng-disabled="!torrentInput.length || $root.disabled" ng-class="{'button-primary': torrentInput.length}")
|
2016-01-04 06:20:11 +00:00
|
|
|
i.fa.fa-download
|
|
|
|
| Download
|
|
|
|
.three.columns
|
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-04 06:20:11 +00:00
|
|
|
i.fa.fa-folder-open
|
|
|
|
| Open torrent file
|
|
|
|
.three.columns.u-pull-right
|
2016-03-11 07:57:25 +00:00
|
|
|
button.u-pull-right(ngf-select="$root.seedFiles($files)" multiple="" ng-disabled="$root.disabled" ng-class="{'button-primary': !$root.disabled}")
|
2016-01-04 06:20:11 +00:00
|
|
|
i.fa.fa-upload
|
|
|
|
| Seed files
|
2016-03-11 07:57:25 +00:00
|
|
|
.row.grid(ui-grid="gridOptions" ui-grid-resize-columns, ui-grid-selection)
|
2016-01-04 06:20:11 +00:00
|
|
|
.row(ng-if="selectedTorrent")
|
2016-03-11 07:57:25 +00:00
|
|
|
.six.columns(style="overflow: auto")
|
2016-01-04 06:20:11 +00:00
|
|
|
h5 {{$root.selectedTorrent.name}}
|
2016-03-11 07:57:25 +00:00
|
|
|
button(ng-if="!$root.selectedTorrent.swarm.paused" ng-click="$root.selectedTorrent.pause()")
|
2016-01-04 06:20:11 +00:00
|
|
|
i.fa.fa-pause
|
|
|
|
| Pause
|
|
|
|
|
|
2016-03-11 07:57:25 +00:00
|
|
|
button(ng-if="$root.selectedTorrent.swarm.paused" ng-click="$root.selectedTorrent.resume()")
|
2016-01-04 06:20:11 +00:00
|
|
|
i.fa.fa-play
|
|
|
|
| Resume
|
|
|
|
|
|
2016-03-11 07:57:25 +00:00
|
|
|
button.button-danger(ng-click="$root.selectedTorrent.destroy($root.destroyedTorrent)")
|
2016-01-04 06:20:11 +00:00
|
|
|
i.fa.fa-times
|
|
|
|
| Remove
|
|
|
|
h6 Share
|
|
|
|
ul
|
|
|
|
li
|
2016-03-11 07:57:25 +00:00
|
|
|
a(ng-href="#{{$root.selectedTorrent.infoHash}}" target="_blank") βTorrent
|
2016-01-04 06:20:11 +00:00
|
|
|
li
|
2016-03-11 07:57:25 +00:00
|
|
|
a(ng-href="{{$root.selectedTorrent.magnetURI}}" target="_blank") Magnet URI
|
2016-01-04 06:20:11 +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-01-04 06:20:11 +00:00
|
|
|
li
|
|
|
|
strong Hash:
|
|
|
|
| {{$root.selectedTorrent.infoHash}}
|
|
|
|
.six.columns
|
|
|
|
h5 Files
|
|
|
|
table.u-full-width
|
|
|
|
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-04 06:20:11 +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-01-04 06:20:11 +00:00
|
|
|
.center
|
|
|
|
strong Client Stats:
|
2016-01-12 05:38:42 +00:00
|
|
|
| ↓ {{$root.client.downloadSpeed | pbytes}}/s ·
|
|
|
|
| ↑ {{$root.client.uploadSpeed | pbytes}}/s ·
|
2016-01-04 06:20:11 +00:00
|
|
|
| Ratio: {{$root.client.ratio | number:2}}
|