{{/* SPDX-License-Identifier: AGPL-3.0-only SPDX-FileContributor: Runxi Yu */}} {{- define "repo_index" -}} {{ template "head_common" . }} {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title }} {{ template "header" . }}
{{ if .repo_description }} {{ end }} {{ if .notes }} {{ end }}
Repo info
Name {{ .repo_name }}
Description {{ .repo_description }}
SSH remote {{ .ssh_clone_url }}
Notes
    {{ range .notes }}
  • {{ . }}
  • {{ end }}

Merge requests

{{ if .commits }}
{{- range .commits }} {{- end }}
Recent commits (see all)
Title Author Author Date
{{ .Message | first_line }} {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }}
{{ end }} {{ if .files }}
{{- $ref_type := .ref_type }} {{- $ref := .ref_name }} {{- range .files }} {{- end }}
/{{ if .ref_name }} on {{ .ref_name }}{{ end }}
Mode Filename Size
{{ .Mode }} {{ .Name }}{{ if not .Is_file }}/{{ end }} {{ .Size }}
{{ end }} {{ if .readme }}
{{ .readme }}
{{ end }} {{- end -}}