From c9b4eee4c589b8b40c02d0c96f887ec991580a24 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 09:33:11 +0800 Subject: Restructure static/templates into forged --- forged/templates/repo_contrib_index.tmpl | 82 ++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 forged/templates/repo_contrib_index.tmpl (limited to 'forged/templates/repo_contrib_index.tmpl') diff --git a/forged/templates/repo_contrib_index.tmpl b/forged/templates/repo_contrib_index.tmpl new file mode 100644 index 0000000..172a079 --- /dev/null +++ b/forged/templates/repo_contrib_index.tmpl @@ -0,0 +1,82 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu +*/}} +{{- define "repo_contrib_index" -}} +{{- $root := . -}} + + + + {{- template "head_common" . -}} + Merge requests – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} + + + {{- template "header" . -}} +
+

{{- .repo_name -}}

+ +
+
+
+ {{- .repo_description -}} +
+
+
+

How to submit a merge request

+
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
+

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.

+

Alternatively, you may email patches to {{ .repo_patch_mailing_list }}.

+
+
+ + + + + + + + + + {{- range .merge_requests -}} + + + + + + {{- end -}} + +
IDTitleStatus
{{- .ID -}}{{- .Title -}}{{- .Status -}}
+
+ + + +{{- end -}} -- cgit v1.2.3