{{/* 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" . -}}
Repo info
Name
{{- .repo_name -}}
{{- if .repo_description -}}
Description
{{- .repo_description -}}
{{- end -}}
SSH remote
{{- .ssh_clone_url -}}
{{- if .notes -}}
Notes
    {{- range .notes -}}
  • {{- . -}}
  • {{- end -}}
{{- end -}}
{{- range .branches -}} {{- end -}}
Branches
{{ . }}

Merge requests

{{- if .commits -}}
{{- range .commits -}} {{- end -}} {{- if dereference_error .commits_err -}} Error while obtaining commit log: {{ .commits_err }} {{- 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 .IsFile -}}/{{- end -}} {{- .Size -}}
{{- end -}} {{- if .readme -}}
{{- .readme -}}
{{- end -}} {{- end -}}