Lindenii Project Forge
Correct table headers in MR indices
{{/* 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 – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}}</title> </head> <body class="repo-contrib-index"> {{- template "header" . -}} <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"> <table id="recent-merge_requests" class="wide"> <thead> <tr class="title-row"> <th colspan="3">Merge requests</th> </tr> </thead> <tr>
<th scope="col">Name</th> <th scope="col">Description</th>
<th scope="col">ID</th> <th scope="col">Title</th>
<th scope="col">Status</th> </tr> <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 -}}