From 26ce57a710aac4cd8e4efcf4656c1f2448476c0d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 19:55:10 +0800 Subject: *: Some simple styling with tables --- templates/repo_index.html | 27 ++++++++++++++++++++++++--- templates/repo_tree_dir.html | 30 +++++++++++++++++++++++------- 2 files changed, 47 insertions(+), 10 deletions(-) (limited to 'templates') diff --git a/templates/repo_index.html b/templates/repo_index.html index ec937a0..72fec06 100644 --- a/templates/repo_index.html +++ b/templates/repo_index.html @@ -9,6 +9,9 @@
+ + + @@ -35,6 +38,9 @@
Recent Commits
ID Title
+ + + @@ -58,9 +64,24 @@
-
- {{ .readme -}} -
+ {{ if .readme }} +
/ on {{ .ref }}
Mode Name
+ + + + + + + + + + +
+ README.md +
+ {{ .readme -}} +
+ {{ end }}
diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html index 1306167..0af63d6 100644 --- a/templates/repo_tree_dir.html +++ b/templates/repo_tree_dir.html @@ -7,11 +7,13 @@
-

- /{{ .path_spec }}/ -

+ + + @@ -19,7 +21,6 @@ - {{- $ref := .ref }} {{- $path_spec := .path_spec }} {{- range .files }} @@ -36,9 +37,24 @@
-
- {{ .readme -}} -
+ {{ if .readme }} +
+ /{{ .path_spec }}/ on {{ .ref }} +
Mode Name
+ + + + + + + + + + +
+ README.md +
+ {{ .readme -}} +
+ {{ end }}
-- cgit v1.2.3