commit 2faeb3c616089a458cbffa3a46b9a15c484f0e80 from: Omar Polo date: Fri Dec 01 18:33:25 2023 UTC gotwebd: add actions to the blame view ok tracey@ commit - 4dfd9794964c0817a9cab3b2b8ea8858589b28ab commit + 2faeb3c616089a458cbffa3a46b9a15c484f0e80 blob - 3080be599c4dbac49c74a4048614b42b1194bad9 blob + 86d2ea107d890280aab7d4d736978e4921878c8e --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -1019,7 +1019,24 @@ nextsep(char *s, char **t) const struct got_error *err; struct request *c = tp->tp_arg; struct transport *t = c->t; + struct querystring *qs = t->qs; struct repo_commit *rc = TAILQ_FIRST(&t->repo_commits); + struct gotweb_url briefs_url, blob_url, raw_url; + + memset(&briefs_url, 0, sizeof(briefs_url)); + briefs_url.index_page = -1, + briefs_url.page = -1, + briefs_url.action = BRIEFS, + briefs_url.path = qs->path, + briefs_url.commit = qs->commit, + briefs_url.folder = qs->folder, + briefs_url.file = qs->file, + + memcpy(&blob_url, &briefs_url, sizeof(blob_url)); + blob_url.action = BLOB; + + memcpy(&raw_url, &briefs_url, sizeof(raw_url)); + raw_url.action = BLOBRAW; !}

Blame

@@ -1033,6 +1050,20 @@ nextsep(char *s, char **t)
Message:
{{ rc->commit_msg }}
+
Actions:
+
+ + History + + {{" | "}} + + Blob + + {{" | "}} + + Raw File + +