X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/4a0be586662843382ecfa53af34a13b291312bc0..776200b1c10536174f68fc6599fc709ae620db54:/ui-commit.c
diff --git a/ui-commit.c b/ui-commit.c
index 2679b59..bd55a33 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -75,8 +75,8 @@ void print_fileinfo(struct fileinfo *info)
html("]");
}
htmlf("
", class);
- cgit_tree_link(info->new_path, NULL, NULL, cgit_query_head, curr_rev,
- info->new_path);
+ cgit_diff_link(info->new_path, NULL, NULL, cgit_query_head, curr_rev,
+ NULL, info->new_path);
if (info->status == DIFF_STATUS_COPIED || info->status == DIFF_STATUS_RENAMED)
htmlf(" (%s from %s)",
info->status == DIFF_STATUS_COPIED ? "copied" : "renamed",
@@ -84,7 +84,7 @@ void print_fileinfo(struct fileinfo *info)
html(" | ");
htmlf("%d", info->added + info->removed);
html(" | ");
- htmlf("", (max_changes > 100 ? 100 : max_changes));
+ htmlf("", (max_changes > 100 ? 100 : max_changes));
htmlf(" | ",
info->added * 100.0 / max_changes);
htmlf(" | ",
@@ -139,7 +139,6 @@ void cgit_print_commit(char *hex)
struct commitinfo *info;
struct commit_list *p;
unsigned char sha1[20];
- char *filename;
char *tmp;
int i;
@@ -158,7 +157,7 @@ void cgit_print_commit(char *hex)
}
info = cgit_parse_commit(commit);
- html("\n");
+ html("\n");
html("| author | ");
html_txt(info->author);
html(" ");
@@ -196,11 +195,10 @@ void cgit_print_commit(char *hex)
html(") | ");
}
if (cgit_repo->snapshots) {
- htmlf("| download | %s | ", filename);
+ html("| download | ");
+ cgit_print_snapshot_links(cgit_query_repo, cgit_query_head,
+ hex, cgit_repo->snapshots);
+ html(" | ");
}
html(" \n");
html("");
@@ -211,7 +209,7 @@ void cgit_print_commit(char *hex)
html(" ");
if (!(commit->parents && commit->parents->next && commit->parents->next->next)) {
html("");
- html("");
+ html("");
max_changes = 0;
cgit_diff_commit(commit, inspect_filepair);
for(i = 0; i
|