aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 19:55:10 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 19:55:10 +0800
commit26ce57a710aac4cd8e4efcf4656c1f2448476c0d (patch)
tree77339c0fad7fdcd5b3c18b6703eedacea781b210 /templates
parent*.html: Add "&ndash; Lindenii Forge" to the title (diff)
downloadforge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.tar.gz
forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.tar.zst
forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.zip
*: Some simple styling with tables
Diffstat (limited to '')
-rw-r--r--templates/repo_index.html27
-rw-r--r--templates/repo_tree_dir.html30
2 files changed, 47 insertions, 10 deletions
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
@@ -10,6 +10,9 @@
<table id="recent-commits">
<thead>
<tr>
+ <th colspan="4">Recent Commits</th>
+ </tr>
+ <tr>
<th scope="col">ID</th>
<th scope="col">Title</th>
<th scope="col">Author</th>
@@ -36,6 +39,9 @@
<table id="file-tree">
<thead>
<tr>
+ <th colspan="3">/ on {{ .ref }}</th>
+ </tr>
+ <tr>
<th scope="col">Mode</th>
<th scope="col">Name</th>
<th scope="col">Size</th>
@@ -58,9 +64,24 @@
</div>
</div>
<div class="padding-wrapper">
- <div id="readme">
- {{ .readme -}}
- </div>
+ {{ if .readme }}
+ <table id="readme">
+ <thead>
+ <tr>
+ <th>
+ README.md
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ {{ .readme -}}
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ {{ end }}
</div>
</body>
</html>
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,19 +7,20 @@
</head>
<body class="repo-tree-dir">
<div class="padding-wrapper">
- <p>
- /{{ .path_spec }}/
- </p>
<table id="file-tree">
<thead>
<tr>
+ <th colspan="3">
+ /{{ .path_spec }}/ on {{ .ref }}
+ </th>
+ </tr>
+ <tr>
<th scope="col">Mode</th>
<th scope="col">Name</th>
<th scope="col">Size</th>
</tr>
</thead>
<tbody>
- {{- $ref := .ref }}
{{- $path_spec := .path_spec }}
{{- range .files }}
<tr>
@@ -36,9 +37,24 @@
</div>
</div>
<div class="padding-wrapper">
- <div id="readme">
- {{ .readme -}}
- </div>
+ {{ if .readme }}
+ <table id="readme">
+ <thead>
+ <tr>
+ <th>
+ README.md
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ {{ .readme -}}
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ {{ end }}
</div>
</body>
</html>