aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/style.css3
-rw-r--r--templates/repo_commit.html.tmpl10
2 files changed, 12 insertions, 1 deletions
diff --git a/static/style.css b/static/style.css
index 1242c12..f8b21c7 100644
--- a/static/style.css
+++ b/static/style.css
@@ -79,6 +79,9 @@ th[scope=row] {
tr.title-row > th {
background-color: var(--darker-box-background-color);
}
+td > pre {
+ margin: 0;
+}
.commit-id {
font-family: monospace;
diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl
index 03625aa..3deec3d 100644
--- a/templates/repo_commit.html.tmpl
+++ b/templates/repo_commit.html.tmpl
@@ -10,11 +10,15 @@
<table id="commit-info-table">
<thead>
<tr class="title-row">
- <th colspan="2">Commit {{ .commit_id }}</th>
+ <th colspan="2">Commit Info</th>
</tr>
</thead>
<tbody>
<tr>
+ <th scope="row">ID</th>
+ <td>{{ .commit_id }}</td>
+ </tr>
+ <tr>
<th scope="row">Author</th>
<td>{{ .commit_object.Author.Name }} &lt;<a href="mailto:{{ .commit_object.Author.Email }}">{{ .commit_object.Author.Email }}</a>&gt;</td>
</tr>
@@ -30,6 +34,10 @@
<th scope="row">Committer Date</th>
<td>{{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</td>
</tr>
+ <tr>
+ <th scope="row">Message</th>
+ <td><pre>{{ .commit_object.Message }}</pre></td>
+ </tr>
</tbody>
</table>
<pre>{{ .patch }}</pre>