aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/repo_contrib_index.tmpl
blob: 7d2d4746081c3e32bec4a92d186112d02aa84d08 (plain) (blame)
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

{{/*
	SPDX-License-Identifier: AGPL-3.0-only
	SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
*/}}
{{- define "repo_contrib_index" -}}
{{- $root := . -}}
<!DOCTYPE html>
<html lang="en">
	<head>
		{{- template "head_common" . -}}
		<title>Merge requests &ndash; {{ .repo_name }} &ndash; {{ template "group_path_plain" .group_path }} &ndash; {{ .global.forge_title -}}</title>
	</head>
	<body class="repo-contrib-index">
		{{- template "header" . -}}
		<main>
			<div class="repo-header">
				<h2>{{- .repo_name -}}</h2>
				<ul class="nav-tabs-standalone">
					<li class="nav-item">
						<a class="nav-link" href="../{{- template "ref_query" $root -}}">Summary</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="../tree/{{- template "ref_query" $root -}}">Tree</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="../log/{{- template "ref_query" $root -}}">Log</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="../branches/">Branches</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="../tags/">Tags</a>
					</li>
					<li class="nav-item">
						<a class="nav-link active" href="../contrib/">Merge requests</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="../settings/">Settings</a>
					</li>
				</ul>
			</div>
			<div class="repo-header-extension">
				<div class="repo-header-extension-content">
					{{- .repo_description -}}
				</div>
			</div>
			<div class="padding-wrapper">
				<h2>How to submit a merge request</h2>
				<pre>git clone {{ .ssh_clone_url }}
	cd {{ .repo_name }}
	git checkout -b contrib/name_of_your_contribution
	# edit and commit stuff
	git push -u origin HEAD</pre>
				<p>Pushes that update branches in other namespaces, or pushes to existing contribution branches belonging to other SSH keys, will be automatically
	rejected, unless you are an authenticated maintainer. Otherwise, a merge request is automatically opened, and the maintainers are notified via IRC.</p>
				<p>Alternatively, you may <a href="https://git-send-email.io">email patches</a> to <a href="mailto:{{ .repo_patch_mailing_list }}">{{ .repo_patch_mailing_list }}</a>.</p>
			</div>
			<div class="padding-wrapper">
				<table id="recent-merge_requests" class="wide">
					<thead>
						<tr>
							<th scope="col">ID</th>
							<th scope="col">Title</th>
							<th scope="col">Status</th>
						</tr>
					</thead>
					<tbody>
						{{- range .merge_requests -}}
							<tr>
								<td class="merge_request-id">{{- .ID -}}</td>
								<td class="merge_request-title"><a href="{{- .ID -}}/">{{- .Title -}}</a></td>
								<td class="merge_request-status">{{- .Status -}}</td>
							</tr>
						{{- end -}}
					</tbody>
				</table>
			</div>
		</main>
		<footer>
			{{- template "footer" . -}}
		</footer>
	</body>
</html>
{{- end -}}