commit 54f5c7d08171681a5416689c1732f6e9ead4b51c from: Omar Polo via: Thomas Adam date: Fri Dec 01 17:01:41 2023 UTC gotwebd: add links for actions in the blob page positive feedback from Kyle Ackerman ok/tweak tracey@ commit - c13168e4b762e0d3808d1c60190a7eb70e27ee8a commit + 54f5c7d08171681a5416689c1732f6e9ead4b51c blob - 59254bdacde8982514869cb3e482229f67a488ed blob + 7d715220a107ff030e5d9e8513fcd475261cbf02 --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -541,8 +541,25 @@ nextsep(char *s, char **t) {! struct request *c = tp->tp_arg; struct transport *t = c->t; + struct querystring *qs = t->qs; struct got_blob_object *blob = t->blob; struct repo_commit *rc = TAILQ_FIRST(&t->repo_commits); + struct gotweb_url briefs_url, blame_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(&blame_url, &briefs_url, sizeof(blame_url)); + blame_url.action = BLAME; + + memcpy(&raw_url, &briefs_url, sizeof(raw_url)); + raw_url.action = BLOBRAW; !}

Blob

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