aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemcommit.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-08-04 14:44:36 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-08-04 14:44:36 +0200
commit60004cfb97fe0eb64d1c8310e7c9caae96b8adbe (patch)
tree2267cf703f6870b05d68c73be7af1fc57190e770 /templates/gititemcommit.qtpl
parentaa559681fcf8df993029370f28e0011315ca8761 (diff)
downloadcerrado-60004cfb97fe0eb64d1c8310e7c9caae96b8adbe.tar.gz
cerrado-60004cfb97fe0eb64d1c8310e7c9caae96b8adbe.tar.bz2
cerrado-60004cfb97fe0eb64d1c8310e7c9caae96b8adbe.zip
feat: Add diff view
Adds a very simple diff view for a commit
Diffstat (limited to 'templates/gititemcommit.qtpl')
-rw-r--r--templates/gititemcommit.qtpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/gititemcommit.qtpl b/templates/gititemcommit.qtpl
index 77536f1..d223315 100644
--- a/templates/gititemcommit.qtpl
+++ b/templates/gititemcommit.qtpl
@@ -3,6 +3,7 @@
{% code
type GitItemCommitPage struct {
Commit *object.Commit
+ Diff string
}
%}
@@ -12,8 +13,7 @@ type GitItemCommitPage struct {
<div class="event-list">
{%= Commit(name, g.Commit, true) %}
</div>
-
-<div class="alert alert-info text-center" role="alert">
- This page is work in progress.
+<div class="code-view">
+<pre>{%s g.Diff %}</pre>
</div>
{% endfunc %}