diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 19:55:10 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 19:55:10 +0800 |
commit | 26ce57a710aac4cd8e4efcf4656c1f2448476c0d (patch) | |
tree | 77339c0fad7fdcd5b3c18b6703eedacea781b210 /templates/repo_index.html | |
parent | *.html: Add "– Lindenii Forge" to the title (diff) | |
download | forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.tar.gz forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.tar.zst forge-26ce57a710aac4cd8e4efcf4656c1f2448476c0d.zip |
*: Some simple styling with tables
Diffstat (limited to '')
-rw-r--r-- | templates/repo_index.html | 27 |
1 files changed, 24 insertions, 3 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> |