X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/d14d77fe95c3b6224b40df9b101dded0deea913c..f135569b2be3fb1816f802f9a162b3743b735d1c:/ui-commit.c?ds=inline
diff --git a/ui-commit.c b/ui-commit.c
index 3b0919b..8019e36 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -7,6 +7,8 @@
*/
#include "cgit.h"
+#include "html.h"
+#include "ui-shared.h"
static int files, slots;
static int total_adds, total_rems, max_changes;
@@ -62,16 +64,16 @@ void print_fileinfo(struct fileinfo *info)
html("
");
htmlf("| ");
if (is_null_sha1(info->new_sha1)) {
- html_filemode(info->old_mode);
+ cgit_print_filemode(info->old_mode);
} else {
- html_filemode(info->new_mode);
+ cgit_print_filemode(info->new_mode);
}
if (info->old_mode != info->new_mode &&
!is_null_sha1(info->old_sha1) &&
!is_null_sha1(info->new_sha1)) {
html("[");
- html_filemode(info->old_mode);
+ cgit_print_filemode(info->old_mode);
html("]");
}
htmlf(" | ", class);
@@ -194,10 +196,10 @@ void cgit_print_commit(char *hex)
sha1_to_hex(p->item->object.sha1), NULL);
html(") |
");
}
- if (cgit_repo->snapshots) {
+ if (ctx.repo->snapshots) {
html("| download | ");
cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head,
- hex, cgit_repo->snapshots);
+ hex, ctx.repo->snapshots);
html(" |
");
}
html("\n");