diff options
Diffstat (limited to 'templates/repo_tree_dir.html')
-rw-r--r-- | templates/repo_tree_dir.html | 30 |
1 files changed, 23 insertions, 7 deletions
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> |