From 5af62e009dc271ea5e7271e99bf1e2bdd5ec8965 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 9 Feb 2025 01:53:06 +0800 Subject: *: Add basic repo home with a README and recent commits display --- templates/repo.html | 0 templates/repo_index.html | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) delete mode 100644 templates/repo.html create mode 100644 templates/repo_index.html (limited to 'templates') diff --git a/templates/repo.html b/templates/repo.html deleted file mode 100644 index e69de29..0000000 diff --git a/templates/repo_index.html b/templates/repo_index.html new file mode 100644 index 0000000..3231ec1 --- /dev/null +++ b/templates/repo_index.html @@ -0,0 +1,45 @@ +{{ define "repo_index" }} + + + + +{{ .project_name }}/repos/{{ .repo_name }} + + + + + + + + + + + + + +{{ range .commits }} + + + + + + +{{ end }} + +
IDTitleAuthorTime
+{{ slice .Hash.String 0 8 }} + +{{ .Message }} + + + +{{ .Author.When.Format "2006-01-02 15:04:05 -0700" }} +
+
+
+
+{{ .readme }} +
+ + +{{ end }} -- cgit v1.2.3