summaryrefslogtreecommitdiff
path: root/web/kvm/navbar-msd.pug
blob: 55a047a595019af2faa1f9e237781ad7f53cce1a (plain)
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
li(id="msd-dropdown" class="right feature-disabled")
	a(class="menu-button" href="#")
		+navbar_led("msd-led", "led-msd")
		| Drive
	div(data-dont-hide-menu id="msd-menu" class="menu")
		div(class="text")
			b Mass Storage Drive: 
			span(id="msd-status")
			br
		hr
		div(id="msd-message-offline" class="hidden")
			+menu_message("warning", "Mass Storage Drive is offline")
			hr
		div(id="msd-message-image-broken" class="hidden")
			+menu_message("warning", "Current image is broken!")
				| Perhaps uploading was interrupted#[br]
			hr
		div(id="msd-message-too-big-for-cdrom" class="hidden")
			+menu_message("warning", "Current image is too big for CD-ROM!")
				| The device filesystem will be truncated to 2.2GiB
			hr
		div(id="msd-message-out-of-storage" class="hidden")
			+menu_message("warning", "Current image is out of storage")
				| This image was connected manually using #[b kvmd-otgmsd]
			hr
		div(id="msd-message-rw-enabled" class="hidden")
			+menu_message("warning", "Read-write mode is enabled")
				| Do not turn off PiKVM during this to prevent filesystem#[br]
				| corruption, and don't use this mode unnecessarily.#[br]
				| It can reduce the resource of the memory card.
			hr
		table(class="kv msd-single-storage feature-disabled")
			tr
				td Current image:
				td(id="msd-image-name" class="value")
			tr
				td Image size:
				td(id="msd-image-size" class="value")
			tr
				td Storage size:
				td(id="msd-storage-size" class="value")
		table(class="kv msd-multi-storage feature-disabled")
			tr
				td Image:
				td(width="100%") #[select(disabled id="msd-image-selector")]
				td #[button(disabled id="msd-download-button" title="Download image")   🖪  ]
				td #[button(disabled id="msd-remove-button" title="Remove image") #[b   ×  ]]
		table(class="kv msd-cdrom-emulation feature-disabled")
			tr
				td Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]:
				td
					div(class="radio-box")
						input(checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1")
						label(for="msd-mode-radio-cdrom") CD-ROM
						input(type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0")
						label(for="msd-mode-radio-flash") Flash
				td  
				+menu_switch_notable("msd-rw-switch", "Writable", false, false, "msd-rw feature-disabled")
		div(class="msd-multi-storage feature-disabled")
			hr
			div(class="text")
				div(id="msd-storage-progress" class="progress")
					span(id="msd-storage-progress-value" class="progress-value")
		hr
		div(class="buttons buttons-row")
			button(disabled id="msd-select-new-button" class="row50") Select image to upload
			button(disabled id="msd-upload-new-button" class="row25") Upload
			button(disabled id="msd-abort-new-button" class="row25") Abort
		div(id="msd-message-another-user-uploads" class="hidden")
			hr
			+menu_message("info", "Another user uploads an image")
		div(id="msd-new-sub" class="hidden")
			hr
			table(class="kv")
				tr
					td Specify a local file:
					td #[input(type="file" id="msd-new-file")]
				tr
					td #[b Or] paste a URL:
					td #[input(type="text" id="msd-new-url" style="width: 100%")]
			hr
			table(class="kv")
				tr
					td(class="value") Note:
					td • Don't close the browser page until the upload is complete.
				tr
					td
					td • To speed up the upload, close the stream window.
		div(id="msd-uploading-sub" class="hidden")
			hr
			table(class="kv")
				tr
					td New image:
					td(id="msd-uploading-name" class="value")
				tr
					td Upload size:
					td(id="msd-uploading-size" class="value")
			div(class="text")
				div(id="msd-uploading-progress" class="progress")
					span(id="msd-uploading-progress-value" class="progress-value")
		hr
		div(class="buttons buttons-row")
			button(disabled id="msd-connect-button" class="row50") Connect drive to Server
			button(disabled id="msd-disconnect-button" class="row25") Disconnect
			button(disabled id="msd-reset-button" class="row25") Reset