~misterio/scgit

2cd05c95827fb94740e876733dc6f7fe88340de2 — Gabriel Fontes 1 year, 1 month ago 2d4b8c8 master
remove links to diff
2 files changed, 1 insertions(+), 8 deletions(-)

M ui-commit.c
M ui-shared.c
M ui-commit.c => ui-commit.c +1 -4
@@ 103,10 103,7 @@ void cgit_print_commit(char *hex, const char *prefix)
			tmp2 = parent_info->subject;
		}
		cgit_commit_link(tmp2, NULL, NULL, ctx.qry.head, tmp, prefix);
		html(" (");
		cgit_diff_link("diff", NULL, NULL, ctx.qry.head, hex,
			       oid_to_hex(&p->item->object.oid), prefix);
		html(")</td></tr>");
		html("</td></tr>");
		parents++;
	}
	if (ctx.repo->snapshots) {

M ui-shared.c => ui-shared.c +0 -4
@@ 1109,10 1109,6 @@ void cgit_print_pageheader(void)
		cgit_commit_link("commit", NULL, hc("commit"),
				 ctx.qry.head, ctx.qry.oid, ctx.qry.vpath);
	    html("</li>");
	    html("<li>");
		cgit_diff_link("diff", NULL, hc("diff"), ctx.qry.head,
			       ctx.qry.oid, ctx.qry.oid2, ctx.qry.vpath);
	    html("</li>");
		if (ctx.repo->max_stats) {
	        html("<li>");
			cgit_stats_link("stats", NULL, hc("stats"),