aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 01:02:33 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 01:02:33 +0800
commit2d3e888321baeae889c7c51f2312aafba1ec70d0 (patch)
tree030c79f59ac2f62cce1567fd3fc07607b224d2fd /templates
parenthttp: Consistently use redirect_with{out,}_slash, never r.URL.Path (diff)
downloadforge-2d3e888321baeae889c7c51f2312aafba1ec70d0.tar.gz
forge-2d3e888321baeae889c7c51f2312aafba1ec70d0.tar.zst
forge-2d3e888321baeae889c7c51f2312aafba1ec70d0.zip
contrib: Add contrib/MR index page
Diffstat (limited to 'templates')
-rw-r--r--templates/repo_contrib_index.tmpl33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/repo_contrib_index.tmpl b/templates/repo_contrib_index.tmpl
new file mode 100644
index 0000000..6da917b
--- /dev/null
+++ b/templates/repo_contrib_index.tmpl
@@ -0,0 +1,33 @@
+{{- define "repo_contrib_index" -}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{ template "head_common" . }}
+ <title>Merge requests &ndash; {{ .repo_name }} &ndash; {{ .group_name }} &ndash; {{ .global.forge_title }}</title>
+ </head>
+ <body class="repo-contrib-index">
+ {{ template "header" . }}
+ <div class="padding-wrapper">
+ <table id="recent-merge_requests" class="wide">
+ <thead>
+ <tr class="title-row">
+ <th colspan="3">Merge requests</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>
+ <footer>
+ {{ template "footer" . }}
+ </footer>
+ </body>
+</html>
+{{- end -}}