aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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>