Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/res/repo/edit.html (100 lines, 3.8 KiB) -rw-r--r-- file download

ceeeb52 Jakob Wakeling 2023-08-19 12:11:35
0
<!DOCTYPE html>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
1
<html lang="en">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
2
	<head>{{template "base/head" .}}</head>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
3
	<body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
4
		<header>{{template "repo/header" .}}</header><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
5
		<main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
6
			<h1>{{.Title}}</h1><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
7
			<form action="/{{.Name}}/edit" method="post">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
8
				{{.CsrfField}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
9
				<input type="hidden" name="action" value="edit">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
				<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
						<td style="text-align: right;"><span>ID</span></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
						<td><span>{{.Edit.Id}}</span></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
						<td style="text-align: right;"><span>Owner</span></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
						<td><span>{{.Edit.Owner}}</span></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
						<td style="text-align: right;"><label for="reponame">Name</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
						<td><input type="text" name="reponame" value="{{.Edit.Name}}" spellcheck="false"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
						<td style="text-align:right; vertical-align:top;"><label for="description">Description</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
						<td><textarea name="description" spellcheck="false">{{.Edit.Description}}</textarea></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
28
						<td style="text-align: right;"><label for="branch">Default Branch</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
29
						<td><input type="text" name="branch" value="{{.Edit.DefaultBranch}}" placeholder="master"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
30
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
31
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
32
						<td style="text-align: right;"><label for="visibility">Visibility</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
33
						<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
34
							<select name="visibility">
778d467 Jakob Wakeling 2024-01-17 18:29:55
35
								<option value="public" {{if eq .Edit.Visibility "public"}}selected{{end}}>Public</option>
778d467 Jakob Wakeling 2024-01-17 18:29:55
36
								<option value="private" {{if eq .Edit.Visibility "private"}}selected{{end}}>Private</option>
778d467 Jakob Wakeling 2024-01-17 18:29:55
37
								<option value="limited" {{if eq .Edit.Visibility "limited"}}selected{{end}}>Limited</option>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
38
							</select>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
39
						</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
40
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
41
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
42
						<td style="text-align: right;"><label for="upstream">Upstream</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
43
						<td><input type="text" name="upstream" value="{{.Edit.Upstream}}" spellcheck="false"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
44
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
45
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
46
						<td style="text-align: right;"><label for="mirror">Mirror</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
47
						<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
48
							<input type="checkbox" name="mirror" value="mirror" {{if .Edit.IsMirror}}checked{{end}}>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
49
							<span id="mirror-warn">Enabling mirror will replace any existing repository data</span>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
50
						</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
51
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
52
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
53
						<td></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
54
						<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
55
							<input type="submit" value="Update">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
56
							<a href="/{{.Name}}" style="color: inherit;">Cancel</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
57
						</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
58
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
59
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
60
						<td></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
61
						<td style="color: #AA0000">{{.Edit.Message}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
62
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
63
				</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
64
			</form>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
65
			<br><h2>Transfer Ownership</h2><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
66
			<span>- You will lose access to this repository if it is not public.</span><br><br>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
67
			<form action="/{{.Name}}/edit" method="post">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
68
				{{.CsrfField}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
69
				<input type="hidden" name="action" value="transfer">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
70
				<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
71
					<tr><td><label for="owner">New Owner</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
72
					<tr><td><input type="text" name="owner" value="{{.Transfer.Owner}}" spellcheck="false"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
73
					<tr><td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
74
						<input type="submit" value="Transfer">
ceeeb52 Jakob Wakeling 2023-08-19 12:11:35
75
						<a href="/{{.Name}}" style="color: inherit;">Cancel</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
76
					</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
77
					<tr><td style="color: #AA0000">{{.Transfer.Message}}</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
78
				</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
79
			</form>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
80
			<br><h2>Delete Repository</h2><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
81
			<span>- This operation <b>CANNOT</b> be undone.</span><br>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
82
			<span>- This operation will permanently delete the {{.Name}} repository and all associated data.</span><br><br>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
83
			<form action="/{{.Name}}/edit" method="post">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
84
				{{.CsrfField}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
85
				<input type="hidden" name="action" value="delete">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
86
				<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
87
					<tr><td><label for="reponame">To confirm, type "{{.Name}}" in the box below</label></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
88
					<tr><td><input type="text" name="reponame" spellcheck="false"></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
89
					<tr><td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
90
						<input type="submit" value="Delete">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
91
						<a href="/{{.Name}}" style="color: inherit;">Cancel</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
92
					</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
93
					<tr><td style="color: #AA0000">{{.Delete.Message}}</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
94
				</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
95
			</form>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
96
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
97
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
98
</html>
99