ui-tree: link to plain view instead of blob view

The urls for plain view makes it possible to download blobs without knowing
their SHA1, but the function needs to be promoted and the link from tree
view seems like a perfect fit.

PS: Although hidden, the blob view still is nice for direct blob access so
there's no point in removing it.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Tá an tiomantas seo le fáil i:
Lars Hjemli
2008-08-06 11:07:13 +02:00
tuismitheoir e5da4bca54
tiomantas 65b7b876aa
D'athraigh 3 comhad le 12 breiseanna agus 4 scriosta

Féach ar an gComhad

@ -35,10 +35,10 @@ static void print_object(const unsigned char *sha1, char *path)
return;
}
html(" blob: <a href='");
html_attr(cgit_pageurl(ctx.qry.repo, "blob",
fmt("id=%s&path=%s", sha1_to_hex(sha1), path)));
htmlf("'>%s</a>",sha1_to_hex(sha1));
html(" (");
cgit_plain_link("plain", NULL, NULL, ctx.qry.head,
curr_rev, path);
htmlf(")<br/>blob: %s", sha1_to_hex(sha1));
html("<table summary='blob content' class='blob'>\n");
idx = 0;