aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_log.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 10:37:39 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 10:37:39 +0800
commita3f04f9adb5ca63c8b0cc06ba75946176643c8d9 (patch)
tree1b1c2b8364fc754f769157386a401dcb9390447e /templates/repo_log.html.tmpl
parentrepo_commit: fake_diff_file_null has zero hash (diff)
downloadforge-a3f04f9adb5ca63c8b0cc06ba75946176643c8d9.tar.gz
forge-a3f04f9adb5ca63c8b0cc06ba75946176643c8d9.tar.zst
forge-a3f04f9adb5ca63c8b0cc06ba75946176643c8d9.zip
repo_log: Scrollable view
Diffstat (limited to 'templates/repo_log.html.tmpl')
-rw-r--r--templates/repo_log.html.tmpl52
1 files changed, 27 insertions, 25 deletions
diff --git a/templates/repo_log.html.tmpl b/templates/repo_log.html.tmpl
index e25f2bd..0ad6f39 100644
--- a/templates/repo_log.html.tmpl
+++ b/templates/repo_log.html.tmpl
@@ -7,33 +7,35 @@
</head>
<body class="repo-log">
{{ template "header" . }}
- <table id="commits" class="wide">
- <thead>
- <tr class="title-row">
- <th colspan="4">Commits on {{ .ref }}</th>
- </tr>
- <tr>
- <th scope="col">ID</th>
- <th scope="col">Title</th>
- <th scope="col">Author</th>
- <th scope="col">Time</th>
- </tr>
- </thead>
- <tbody>
- {{- range .commits }}
+ <div class="scroll">
+ <table id="commits" class="wide">
+ <thead>
+ <tr class="title-row">
+ <th colspan="4">Commits on {{ .ref }}</th>
+ </tr>
<tr>
- <td class="commit-id"><a href="../commit/{{ .ID }}">{{ .ID }}</a></td>
- <td class="commit-title">{{ .Message | first_line }}</td>
- <td class="commit-author">
- <a class="email-name" href="mailto:{{ .Author.Email }}">{{ .Author.Name }}</a>
- </td>
- <td class="commit-time">
- {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }}
- </td>
+ <th scope="col">ID</th>
+ <th scope="col">Title</th>
+ <th scope="col">Author</th>
+ <th scope="col">Time</th>
</tr>
- {{- end }}
- </tbody>
- </table>
+ </thead>
+ <tbody>
+ {{- range .commits }}
+ <tr>
+ <td class="commit-id"><a href="../commit/{{ .ID }}">{{ .ID }}</a></td>
+ <td class="commit-title">{{ .Message | first_line }}</td>
+ <td class="commit-author">
+ <a class="email-name" href="mailto:{{ .Author.Email }}">{{ .Author.Name }}</a>
+ </td>
+ <td class="commit-time">
+ {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }}
+ </td>
+ </tr>
+ {{- end }}
+ </tbody>
+ </table>
+ </div>
<footer>
{{ template "footer" . }}
</footer>