-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.pug
471 lines (421 loc) · 18.9 KB
/
index.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
doctype html
html
head
meta(http-equiv='Content-Type' content='text/html; charset=utf-8')
meta(name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0')
link(type='text/css' rel='stylesheet' href='./resources/css/style.css')
link(type='text/css' rel='stylesheet' href='./bower_components/materialIcons/materialIcons.css')
script(type='text/javascript' src='./resources/js/app.min.js')
title(i18n-text='i18n.htmlStrings.title') Transmission Web Interface
body.grey.darken-4
section.fixed-action-btn.floatingOptions.click-to-toggle
a.btn-floating.btn-large.purple.hover
i.large.material-icons settings
ul
li.tooltipped(data-tooltip='Credits' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.credits')
a.btn.btn-floating.waves-effect.waves-light.cyan.credits
i.material-icons person
li.tooltipped(data-tooltip='Toggle Speed Limit Mode' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.toggleSpeedLimitMode')
a.btn.btn-floating.waves-effect.waves-light.red.speedLimitMode
i.material-icons network_check
li.tooltipped(data-tooltip='Settings' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.settings')
a.btn.btn-floating.waves-effect.waves-light.brown.settings
i.material-icons settings_applications
section.fixed-action-btn.floatingActions.click-to-toggle
a.btn-floating.btn-large.purple.hover(data-type='actions')
i.large.material-icons open_in_browser
ul
li.tooltipped(data-tooltip='Start' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.start')
a.btn.btn-floating.waves-effect.waves-light.green(data-action='Start')
i.material-icons play_arrow
li.tooltipped(data-tooltip='Stop' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.stop')
a.btn.btn-floating.waves-effect.waves-light.red(data-action='Pause')
i.material-icons stop
li.tooltipped(data-tooltip='Verify Local Data' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.verifyLocalData')
a.btn.btn-floating.waves-effect.waves-light.light-blue(data-action='Verify')
i.material-icons done_all
li.tooltipped(data-tooltip='Ask tracker for more peers' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.askTrackerForMorePeers')
a.btn.btn-floating.waves-effect.waves-light.teal(data-action='Ask tracker for more peers')
i.material-icons update
li.tooltipped(data-tooltip='Delete' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.delete')
a.btn.btn-floating.waves-effect.waves-light.red(data-action='Remove')
i.material-icons delete
li.tooltipped(data-tooltip='Add Torrent' data-position='left' data-delay="50" i18n-tooltip='i18n.htmlStrings.tooltips.addTorrent')
a.btn.btn-floating.waves-effect.waves-light.teal(data-action='add')
i.material-icons note_add
section.topBar.blue.darken-3.grid-container
p.mobile-grid-100.tablet-grid-50.grid-40(i18n-text='i18n.htmlStrings.title') Transmission Web Interface
p.mobile-grid-100.tablet-grid-50.grid-60.additionalData
span.statistics(i18n-text='i18n.htmlStrings.topBar.statistics')
span.bandwidth(i18n-text='i18n.htmlStrings.topBar.bandwidth')
// span.timeNow(i18n-text='i18n.htmlStrings.topBar.date') DATE
section.header.blue.darken-2
span(i18n-text='i18n.htmlStrings.filterOptions.text') Filter torrents by...
ul
li.active(data-href='all')
a(i18n-text='i18n.htmlStrings.filterOptions.all') All
li(data-href='downloading')
a(i18n-text='i18n.htmlStrings.filterOptions.downloading') Downloading
li(data-href='seeding')
a(i18n-text='i18n.htmlStrings.filterOptions.seeding') Seeding
li(data-href='idling')
a(i18n-text='i18n.htmlStrings.filterOptions.idling') Idling
li(data-href='queued')
a(i18n-text='i18n.htmlStrings.filterOptions.queued') Queued
li(data-href='paused')
a(i18n-text='i18n.htmlStrings.filterOptions.paused') Paused
li(data-href='errored')
a(i18n-text='i18n.htmlStrings.filterOptions.errored') Errored
section.torrentPagination
button.btn.waves-button.waves-effect.white.previousPage.black-text
i.material-icons.left keyboard_arrow_left
span(i18n-text='i18n.htmlStrings.pagination.previousPage') Prev Page
a.btn.waves-button.waves-effect.cyan.darken-1.pageInfo.white-text.tooltipped.modal-trigger(href='#viewOptions' data-position='bottom' data-delay='50' data-tooltip='Click to modify view options')
span(i18n-text='i18n.htmlStrings.pagination.page' i18n-text-after=' ') Page
span.currentPage
span(i18n-text='i18n.htmlStrings.pagination.of' i18n-text-before=' ' i18n-text-after=' ') of
span.totalPages
button.btn.waves-button.waves-effect.white.nextPage.black-text
i.material-icons.right keyboard_arrow_right
span(i18n-text='i18n.htmlStrings.pagination.nextPage') Next Page
section.torrentSearch.grid-container
section.input-field
input.search.mobile-grid-100.tablet-grid-100.grid-100.white-text#search(type='text' autocomplete='off')
label(for='search' i18n-text='i18n.htmlStrings.searchTorrent') Search Torrent...
section.parachute.hidden
section.torrentsContainer
section.torrents.grid-container
section.sidebar
section.torrentInformation
section.head
h3
span(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.torrentInformation') Torrent Information
span.showOnMobile
| -
span.torrentName
i.material-icons.closeSidebar close
hr
ul.tabs.tabs-fixed-width
li.tab
a(href='#information' i18n-text='i18n.htmlStrings.sidebarView.tabs.information.title').active Information
li.tab
a(href='#activity' i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.title') Activity
li.tab
a(href='#trackers' i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.title') Trackers
li.tab
a(href='#peers' i18n-text='i18n.htmlStrings.sidebarView.tabs.peers.title') Peers
li.tab
a(href='#files' i18n-text='i18n.htmlStrings.sidebarView.tabs.files.title') Files
li.tab
a(href='#options' i18n-text='i18n.htmlStrings.sidebarView.tabs.options.title') Options
section.tabContent
section#information
table
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.size') Size:
td.size
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.pieces') Pieces:
td.pieces
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.hash') Hash:
td.hash
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.type.title') Type:
td.type
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.comment') Comment:
td.comment
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.information.createdWith') Created with:
td.createdWith
section#activity
table
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.status' i18n-text-after=':') Status:
td.status
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.progress' i18n-text-after=':') Progress:
td.torrentProgress
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.downloaded' i18n-text-after=':') Downloaded:
td.downloaded
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.uploaded' i18n-text-after=':') Uploaded:
td.uploaded
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.ratio' i18n-text-after=':') Ratio:
td.ratio
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.downloadSpeed' i18n-text-after=':') Download Speed:
td
span.downloadSpeed
span(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.from' i18n-text-before=' (' i18n-text-after=' ') (from
span.downloadPeers
span(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.peers' i18n-text-before=' ' i18n-text-after=')') peers)
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.uploadSpeed' i18n-text-after=':') Upload Speed:
td
span.uploadSpeed
span(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.from' i18n-text-before=' (' i18n-text-after=' ') (from
span.uploadPeers
span(i18n-text='i18n.htmlStrings.sidebarView.tabs.activity.peers' i18n-text-before=' ' i18n-text-after=')') peers)
section#trackers
section.trackerSearch
section.input-field
input.search#search(type='text' autocomplete='off')
label(for='search' i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.searchTracker' i18n-text-after='...') Search tracker...
section.trackers
section#peers
table
tr
th.ipAddress(i18n-text='i18n.htmlStrings.sidebarView.tabs.peers.ipAddress') IP Address
th.client(i18n-text='i18n.htmlStrings.sidebarView.tabs.peers.client') Client
th.percentageDone(i18n-text='i18n.htmlStrings.sidebarView.tabs.peers.percentageDone') %
th.uploading(i18n-text='i18n.htmlStrings.sidebarView.tabs.peers.uploading') Uploading
th.downloading(i18n-text='i18n.htmlStrings.sidebarView.tabs.peers.downloading') Downloading
section#files
section#options
table
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.downloadDirectory' i18n-text-after=':') Download Directory:
td
input(type='text' placeholder='Download Directory').downloadDirectory
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.priority' 18n-text-after=':') Priority:
td.priorityContainer
span
input#low(name='priority' type='radio').priority
label(for='low' i18n-text='i18n.htmlStrings.sidebarView.tabs.options.low') Low
span
input#normal(name='priority' type='radio').priority
label(for='normal' i18n-text='i18n.htmlStrings.sidebarView.tabs.options.normal') Normal
span
input#high(name='priority' type='radio').priority
label(for='high' i18n-text='i18n.htmlStrings.sidebarView.tabs.options.high') High
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.stopSeedingAt' i18n-text-after=':') Stop Seeding At:
td
input(type='text' placeholder='Stop Seeding At').stopSeedingAt
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.limitDownloadSpeed' i18n-text-after=':') Limit Download Speed:
td
.switch.downloadSpeedToggle
label
| Off
input(type='checkbox')
span.lever
| On
input(type='text' placeholder='Limit Download Speed').downloadSpeed
| kB/s
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.limitUploadSpeed' i18n-text-after=':') Limit Upload Speed:
td
.switch.uploadSpeedToggle
label
| Off
input(type='checkbox')
span.lever
| On
input(type='text' placeholder='Limit Upload Speed').uploadSpeed
| kB/s
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.maximumConnections' i18n-text-after=':') Maximum Connections:
td
input(type='text').maxConnections
a.btn.waves-button.waves-effect.teal.saveChanges(i18n-text='i18n.htmlStrings.sidebarView.tabs.options.saveChanges') Save Changes
section.settings
section.head
h3(i18n-text='i18n.htmlStrings.sidebarView.settings.title') Settings
span.closeTab
table
a.btn.waves-button.waves-effect.teal.updateSettingsButton(i18n-text='i18n.htmlStrings.sidebarView.settings.saveSettings') Save Settings
section.statistics
section.head
h3(i18n-text='i18n.htmlStrings.sidebarView.statistics.title') Statistics
span.closeTab
table
tr
td(i18n-text='i18n.htmlStrings.sidebarView.statistics.activeTorrents' i18n-text-after=':') Active Torrents:
td.activeTorrents
tr
td(i18n-text='i18n.htmlStrings.sidebarView.statistics.pausedTorrents' i18n-text-after=':') Paused Torrents:
td.pausedTorrents
tr
td(i18n-text='i18n.htmlStrings.sidebarView.statistics.totalDownloaded' i18n-text-after=':') Total Downloaded:
td.totalDownloaded
tr
td(i18n-text='i18n.htmlStrings.sidebarView.statistics.totalUploaded' i18n-text-after=':') Total Uploaded:
td.totalUploaded
tr
td(i18n-text='i18n.htmlStrings.sidebarView.statistics.ratio' i18n-text-after=':') Ratio:
td.ratio
tr
td(i18n-text='i18n.htmlStrings.sidebarView.statistics.uptime' i18n-text-after=':') Uptime:
td.uptime
section.addTorrent
section.head
h3(i18n-text='i18n.htmlStrings.sidebarView.addTorrent.title') Add Torrent...
section.addTorrentForm
section.file-field.input-field.grid-container
.btn
span(i18n-text='i18n.htmlStrings.sidebarView.addTorrent.file') File
input(type='file' multiple).torrentFile
.file-path-wrapper
input.file-path.validate(type='text' placeholder='Select one or more .torrent files' i18n.htmlStrings-placeholder='i18n.htmlStrings.sidebarView.addTorrent.selectPlaceholder').torrentFilePathDisplay.grid-50
section.input-field
input(name='torrentLink' placeholder='optional').torrentLink#torrentLink
label(for='torrentLink' i18n-text='i18n.htmlStrings.sidebarView.addTorrent.urlLabel').active Torrent URL or magnet: link
section.input-field
input(name='torrentDirectory' placeholder='Leave empty for blank').torrentDirectory#torrentDirectory
label(for='torrentDirectory' i18n-text='i18n.htmlStrings.sidebarView.addTorrent.destinationDirectory').active Destination Directory
p
input(type='checkbox')#startAutomatically
label(for='startAutomatically' checked i18n-text='i18n.htmlStrings.sidebarView.addTorrent.startAutomatically') Start Automatically
section.buttonTray
a.btn.waves-button.waves-effect.addTorrent(i18n-text='i18n.htmlStrings.sidebarView.addTorrent.title') Add Torrent
section.removeTorrent
section.head
h3(i18n-text='i18n.htmlStrings.sidebarView.removeTorrent.title' i18n-text-after='...') Remove Torrent...
section.removeTorrentForm
p
span(i18n-text='i18n.htmlStrings.sidebarView.removeTorrent.validationMessage' i18n-text-after=' ') Are you sure that you would like to remove
span.torrentString
span(i18n-text='i18n.htmlStrings.sidebarView.removeTorrent.torrent' i18n-text-before=' ') torrent
span.plural(i18n-text='i18n.htmlStrings.sidebarView.removeTorrent.torrentPlural') s
| ?
input(type='checkbox')#deleteAllData
label(for='deleteAllData' checked) Delete All Data
section.buttonTray
a.btn.waves-button.waves-effect.removeTorrent
span(i18n-text='i18n.htmlStrings.sidebarView.removeTorrent.title') Remove torrent
span.plural(i18n-text='i18n.htmlStrings.sidebarView.removeTorrent.torrentPlural') s
section.credits
section.head
h3(i18n-text='i18n.htmlStrings.sidebarView.credits.title') Credits
section.body.grid-container
section.grid-33
img(src='https://www.gravatar.com/avatar/ff1da03edab7b33a3debf6c6ebf62b44?s=400')
p
| Edwin A.
a(href='https://theroyalstudent.com') (@theroyalstudent)
section.grid-66
h5(i18n-text='i18n.htmlStrings.sidebarView.credits.specialThanks') Special Thanks:
ul
li
a(href='http://bourbon.io') Bourbon
li
a(href='http://materializecss.com') MaterializeCSS
li
a(href='http://unsemantic.com') Unsementic
hr
section.footer
p
| If you are keen to contribute, do check out the GitHub repository
a(href='https://github.com/theroyalstudent/layered') here
| .
br
p
| Do report bugs or feature requests
a(href='https://github.com/theroyalstudent/layered/issues') here
| if you find any, too.
section.sidebarOverflow.hidden
section.clickToClose
section
i.material-icons close
h2(i18n-text='i18n.htmlStrings.sidebarOverflow.clickToClose') Click to close
section.elements.hidden
section.torrent.card.mobile-grid-100.tablet-grid-40.grid-48.unset.default
section.card-content.white-text
h3.torrentName.truncate
span.name
i.material-icons.closeSidebar.hidden close
i.material-icons.toggle play_arrow
p
| Downloaded
span.downloaded
| , uploaded
span.uploaded
| , total
span.total
| (ratio:
span.uploadRatio
| )
section.progress
section.determinate
p.message
section.card-action
a.getMoreDetails More Details...
a.selectTorrent Select...
section.tracker.unset
h4.host
table
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.tracker.lastAnnounced') Last Announced:
td.lastAnnounced
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.tracker.nextAnnounced') Next Announced:
td.nextAnnounced
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.tracker.lastScrape') Last Scrape:
td.lastScrape
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.tracker.seeders') Seeders:
td.seeders
tr
td(i18n-text='i18n.htmlStrings.sidebarView.tabs.trackers.tracker.leechers') Leechers:
td.leechers
table
tr.peer.unset
td
td
td
td
td
section.file.unset
h4
span
span.download
input(type='checkbox')
label Download
table
tr
td Completed:
td.completed
select
option.language.unset
section.modals
section.modal#viewOptions
section.modal-content
h4 View Options
section.input-field
p.grey-text View Type
p
input#view-grid(type='radio' name='view' value='grid')
label(for='view-grid') Grid (default)
p
input#view-list(type='radio' name='view' value='list')
label(for='view-list') List
br
section.input-field
select.torrentsPerPage#torrentsPerPage
option(value='2') 2
option(value='10') 10
option(value='20')
| 20
span(i18n-text='i18n.htmlStrings.viewOptions.default' i18n-text-before='(' i18n-text-after=')') (default)
option(value='50') 50
option(value='100') 100
option(value='900719925474099' i18n-text='i18n.htmlStrings.viewOptions.all') All
label(i18n-text='i18n.htmlStrings.viewOptions.torrentsPerPage' for='torrentsPerPage') Torrents Per Page
br
section.input-field
select.page#pageSelector
label(for='pageSelector') Page #
br
section.input-field
select.language#language
option(value='en') English
label(i18n-text='i18n.htmlStrings.viewOptions.language' for='language') Language
section.modal-footer
a.modal-action.modal-close.waves-effect.waves-dark.btn-flat(href='#!') Go