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 --- templates/400.tmpl | 25 -------- templates/400_colon.tmpl | 26 -------- templates/403.tmpl | 25 -------- templates/404.tmpl | 24 -------- templates/451.tmpl | 25 -------- templates/500.tmpl | 25 -------- templates/501.tmpl | 24 -------- templates/_footer.tmpl | 12 ---- templates/_group_path.tmpl | 8 --- templates/_group_view.tmpl | 56 ----------------- templates/_head.tmpl | 9 --- templates/_header.tmpl | 35 ----------- templates/_ref_query.tmpl | 3 - templates/group.tmpl | 80 ------------------------- templates/index.tmpl | 63 ------------------- templates/login.tmpl | 59 ------------------ templates/repo_branches.tmpl | 71 ---------------------- templates/repo_commit.tmpl | 117 ------------------------------------ templates/repo_contrib_index.tmpl | 82 ------------------------- templates/repo_contrib_one.tmpl | 123 -------------------------------------- templates/repo_index.tmpl | 94 ----------------------------- templates/repo_log.tmpl | 90 ---------------------------- templates/repo_raw_dir.tmpl | 88 --------------------------- templates/repo_tree_dir.tmpl | 93 ---------------------------- templates/repo_tree_file.tmpl | 65 -------------------- 25 files changed, 1322 deletions(-) delete mode 100644 templates/400.tmpl delete mode 100644 templates/400_colon.tmpl delete mode 100644 templates/403.tmpl delete mode 100644 templates/404.tmpl delete mode 100644 templates/451.tmpl delete mode 100644 templates/500.tmpl delete mode 100644 templates/501.tmpl delete mode 100644 templates/_footer.tmpl delete mode 100644 templates/_group_path.tmpl delete mode 100644 templates/_group_view.tmpl delete mode 100644 templates/_head.tmpl delete mode 100644 templates/_header.tmpl delete mode 100644 templates/_ref_query.tmpl delete mode 100644 templates/group.tmpl delete mode 100644 templates/index.tmpl delete mode 100644 templates/login.tmpl delete mode 100644 templates/repo_branches.tmpl delete mode 100644 templates/repo_commit.tmpl delete mode 100644 templates/repo_contrib_index.tmpl delete mode 100644 templates/repo_contrib_one.tmpl delete mode 100644 templates/repo_index.tmpl delete mode 100644 templates/repo_log.tmpl delete mode 100644 templates/repo_raw_dir.tmpl delete mode 100644 templates/repo_tree_dir.tmpl delete mode 100644 templates/repo_tree_file.tmpl (limited to 'templates') diff --git a/templates/400.tmpl b/templates/400.tmpl deleted file mode 100644 index 58ce768..0000000 --- a/templates/400.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "400" -}} - - - - {{- template "head_common" . -}} - 400 Bad Request – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

400 Bad Request

-

{{- .complete_error_msg -}}

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/400_colon.tmpl b/templates/400_colon.tmpl deleted file mode 100644 index 470a685..0000000 --- a/templates/400_colon.tmpl +++ /dev/null @@ -1,26 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "400_colon" -}} - - - - {{- template "head_common" . -}} - 400 Bad Request – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

400 Bad Request

-

We recently switched URL schemes. Previously “:” was used as our URL group separator, but because OpenSMTPD does not implement local-part address quoting properly, we’re unable to include “:” in URLs properly, hence we use “-” now.

-

As a precaution in case visitors get confused, this page was set up. You should probably replace the “:”s with “-”s in the URL bar. If there are colons in the URL that is not the group separator—that’s an edge case that we’ll fix later.

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/403.tmpl b/templates/403.tmpl deleted file mode 100644 index 86d5518..0000000 --- a/templates/403.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "403" -}} - - - - {{- template "head_common" . -}} - 403 Forbidden – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

403 Forbidden

-

{{- .complete_error_msg -}}

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/404.tmpl b/templates/404.tmpl deleted file mode 100644 index 2eabb06..0000000 --- a/templates/404.tmpl +++ /dev/null @@ -1,24 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "404" -}} - - - - {{- template "head_common" . -}} - 404 Not Found – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

404 Not Found

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/451.tmpl b/templates/451.tmpl deleted file mode 100644 index ed6343c..0000000 --- a/templates/451.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "451" -}} - - - - {{- template "head_common" . -}} - 451 Unavailable For Legal Reasons – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

451 Unavailable For Legal Reasons

-

{{- .complete_error_msg -}}

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/500.tmpl b/templates/500.tmpl deleted file mode 100644 index 3a540e6..0000000 --- a/templates/500.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "500" -}} - - - - {{- template "head_common" . -}} - 500 Internal Server Error – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

500 Internal Server Error

-

{{- .complete_error_msg -}}

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/501.tmpl b/templates/501.tmpl deleted file mode 100644 index b6ab2f0..0000000 --- a/templates/501.tmpl +++ /dev/null @@ -1,24 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "501" -}} - - - - {{- template "head_common" . -}} - 501 Not Implemented – {{ .global.forge_title }} - - - {{- template "header" . -}} -
-

501 Not Implemented

-
-
Lindenii Forge
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/_footer.tmpl b/templates/_footer.tmpl deleted file mode 100644 index f71ea3e..0000000 --- a/templates/_footer.tmpl +++ /dev/null @@ -1,12 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "footer" -}} -Lindenii Forge -{{ .global.forge_version }} -(source, -upstream, -license, -support) -{{- end -}} diff --git a/templates/_group_path.tmpl b/templates/_group_path.tmpl deleted file mode 100644 index f5d3bf8..0000000 --- a/templates/_group_path.tmpl +++ /dev/null @@ -1,8 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "group_path_plain" -}} -{{- $p := . -}} -{{- range $i, $s := . -}}{{- $s -}}{{- if ne $i (minus (len $p) 1) -}}/{{- end -}}{{- end -}} -{{- end -}} diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl deleted file mode 100644 index 92b6639..0000000 --- a/templates/_group_view.tmpl +++ /dev/null @@ -1,56 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "group_view" -}} -{{- if .subgroups -}} - - - - - - - - - - - - {{- range .subgroups -}} - - - - - {{- end -}} - -
Subgroups
NameDescription
- {{- .Name -}} - - {{- .Description -}} -
-{{- end -}} -{{- if .repos -}} - - - - - - - - - - - - {{- range .repos -}} - - - - - {{- end -}} - -
Repos
NameDescription
- {{- .Name -}} - - {{- .Description -}} -
-{{- end -}} -{{- end -}} diff --git a/templates/_head.tmpl b/templates/_head.tmpl deleted file mode 100644 index d6d6571..0000000 --- a/templates/_head.tmpl +++ /dev/null @@ -1,9 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "head_common" -}} - - - -{{- end -}} diff --git a/templates/_header.tmpl b/templates/_header.tmpl deleted file mode 100644 index 340a2ac..0000000 --- a/templates/_header.tmpl +++ /dev/null @@ -1,35 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "header" -}} -
- - -
- {{- if ne .user_id_string "" -}} - {{- .username -}} - {{- else -}} - Login - {{- end -}} -
-
-{{- end -}} diff --git a/templates/_ref_query.tmpl b/templates/_ref_query.tmpl deleted file mode 100644 index 2f78955..0000000 --- a/templates/_ref_query.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -{{- define "ref_query" -}} -{{- if .ref_type -}}?{{- .ref_type -}}={{- .ref_name -}}{{- end -}} -{{- end -}} diff --git a/templates/group.tmpl b/templates/group.tmpl deleted file mode 100644 index b15c316..0000000 --- a/templates/group.tmpl +++ /dev/null @@ -1,80 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "group" -}} -{{- $group_path := .group_path -}} - - - - {{- template "head_common" . -}} - {{- range $i, $s := .group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
- {{- if .description -}} -

{{- .description -}}

- {{- end -}} - {{- template "group_view" . -}} -
- {{- if .direct_access -}} -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
- Create repo -
Name - -
Description - -
Contrib - -
-
-
-
-
- -
-
-
-
-
- {{- end -}} -
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/index.tmpl b/templates/index.tmpl deleted file mode 100644 index ff7c127..0000000 --- a/templates/index.tmpl +++ /dev/null @@ -1,63 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "index" -}} - - - - {{- template "head_common" . -}} - Index – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
- - - - - - - - - - - - {{- range .groups -}} - - - - - {{- end -}} - -
Groups
NameDescription
- {{- .Name -}} - - {{- .Description -}} -
- - - - - - - - - - - - - - - - -
- Info -
SSH public key{{- .global.server_public_key_string -}}
SSH fingerprint{{- .global.server_public_key_fingerprint -}}
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/login.tmpl b/templates/login.tmpl deleted file mode 100644 index 1e26c82..0000000 --- a/templates/login.tmpl +++ /dev/null @@ -1,59 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "login" -}} - - - - {{- template "head_common" . -}} - Login – {{ .global.forge_title -}} - - - {{- .login_error -}} -
-
- - - - - - - - - - - - - - - - - - - - - -
- Password authentication -
Username - -
Password - -
-
-
-
-
- -
-
-
-
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_branches.tmpl b/templates/repo_branches.tmpl deleted file mode 100644 index 55ea0a6..0000000 --- a/templates/repo_branches.tmpl +++ /dev/null @@ -1,71 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_branches" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

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

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- - - - - - - - {{- range .branches -}} - - - - {{- end -}} - -
Branches
- {{ . }} -
-
- - -{{- end -}} diff --git a/templates/repo_commit.tmpl b/templates/repo_commit.tmpl deleted file mode 100644 index 470bba9..0000000 --- a/templates/repo_commit.tmpl +++ /dev/null @@ -1,117 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_commit" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - Commit {{ .commit_id }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
-
-
-
Commit info
-
ID
-
{{- .commit_id -}}
-
Author
-
- {{- .commit_object.Author.Name -}} <{{- .commit_object.Author.Email -}}> -
-
Author date
-
{{- .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
-
Committer
-
- {{- .commit_object.Committer.Name -}} <{{- .commit_object.Committer.Email -}}> -
-
Committer date
-
{{- .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
-
Actions
-
- Get patch -
-
-
-
- -
-
{{- .commit_object.Message -}}
-
-
- {{- $parent_commit_hash := .parent_commit_hash -}} - {{- $commit_object := .commit_object -}} - {{- range .file_patches -}} -
- - -
- {{- range .Chunks -}} - {{- if eq .Operation 0 -}} -
{{ .Content }}
- {{- else if eq .Operation 1 -}} -
{{ .Content }}
- {{- else if eq .Operation 2 -}} -
{{ .Content }}
- {{- else -}} -
{{ .Content }}
- {{- end -}} - {{- end -}} -
-
- {{- end -}} -
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_contrib_index.tmpl b/templates/repo_contrib_index.tmpl deleted file mode 100644 index 172a079..0000000 --- a/templates/repo_contrib_index.tmpl +++ /dev/null @@ -1,82 +0,0 @@ -{{/* - 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 -}}
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_contrib_one.tmpl b/templates/repo_contrib_one.tmpl deleted file mode 100644 index a5f35d3..0000000 --- a/templates/repo_contrib_one.tmpl +++ /dev/null @@ -1,123 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_contrib_one" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - Merge requests – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Merge request info
ID{{- .mr_id -}}
Status{{- .mr_status -}}
Title{{- .mr_title -}}
Source ref{{- .mr_source_ref -}}
Destination branch{{- .mr_destination_branch -}}
Merge base{{- .merge_base.Hash.String -}}
-
-
- {{- $merge_base := .merge_base -}} - {{- $source_commit := .source_commit -}} - {{- range .file_patches -}} -
- - -
- {{- range .Chunks -}} - {{- if eq .Operation 0 -}} -
{{ .Content }}
- {{- else if eq .Operation 1 -}} -
{{ .Content }}
- {{- else if eq .Operation 2 -}} -
{{ .Content }}
- {{- else -}} -
{{ .Content }}
- {{- end -}} - {{- end -}} -
-
- {{- end -}} -
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl deleted file mode 100644 index d040f3a..0000000 --- a/templates/repo_index.tmpl +++ /dev/null @@ -1,94 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_index" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
- {{- if .notes -}} -
Notes
-
    - {{- range .notes -}}
  • {{- . -}}
  • {{- end -}} -
- - {{- end -}} -

{{- .ssh_clone_url -}}

- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} - {{- if .commits -}} -
- {{- range .commits -}} -
-
- - {{- .Hash | printf "%.8s" -}} - -  — {{- .Author -}} - - {{- .Date -}} - -
-
{{- .Message | first_line -}}
-
- {{- end -}} - {{- if dereference_error .commits_err -}} -
- Error while obtaining commit log: {{ .commits_err }} -
- {{- end -}} -
- {{- end -}} - {{- if .readme -}} -
- {{- .readme -}} -
- {{- end -}} -
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_log.tmpl b/templates/repo_log.tmpl deleted file mode 100644 index 2262902..0000000 --- a/templates/repo_log.tmpl +++ /dev/null @@ -1,90 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_log" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - Log – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} - - - - - - - - - - - - - - {{- range .commits -}} - - - - - - - {{- end -}} - {{- if dereference_error .commits_err -}} - Error while obtaining commit log: {{ .commits_err }} - {{- end -}} - -
Commits {{ if .ref_name }} on {{ .ref_name }}{{ end -}}
IDTitleAuthorAuthor date
{{- .Hash -}}{{- .Message | first_line -}} - - - {{- .Author.When.Format "2006-01-02 15:04:05 -0700" -}} -
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_raw_dir.tmpl b/templates/repo_raw_dir.tmpl deleted file mode 100644 index a33da4a..0000000 --- a/templates/repo_raw_dir.tmpl +++ /dev/null @@ -1,88 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_raw_dir" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} - - - - - - - - - - - - - {{- $path_spec := .path_spec -}} - {{- range .files -}} - - - - - - {{- end -}} - -
- (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end -}} -
ModeFilenameSize
{{- .Mode -}}{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- .Size -}}
-
-
-
-
-
-
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl deleted file mode 100644 index fc06646..0000000 --- a/templates/repo_tree_dir.tmpl +++ /dev/null @@ -1,93 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_tree_dir" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} - - - - - - - - - - - - - {{- $path_spec := .path_spec -}} - {{- range .files -}} - - - - - - {{- end -}} - -
- /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end -}} -
ModeFilenameSize
{{- .Mode -}}{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- .Size -}}
-
-
-
-
-
- {{- if .readme -}} -
- {{- .readme -}} -
- {{- end -}} -
- {{- template "footer" . -}} -
- - -{{- end -}} diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl deleted file mode 100644 index 76404a9..0000000 --- a/templates/repo_tree_file.tmpl +++ /dev/null @@ -1,65 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_tree_file" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - - /{{ .path_spec }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} -

- /{{ .path_spec }} (raw) -

- {{- .file_contents -}} -
- - - -{{- end -}} -- cgit v1.2.3