commit 184e6e6f6b03fddd8fe61537fd335053d23d6b7d from: Omar Polo via: Thomas Adam date: Sun Dec 03 21:51:13 2023 UTC gotwebd: add actions in the diff view too commit - feaddee622f43226923713b48d635518d166e5e5 commit + 184e6e6f6b03fddd8fe61537fd335053d23d6b7d blob - 756c636e366f60c02a51701359775f11387439ca blob + 8becda7103c167cf7ff999d841b159142d15372c --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -866,11 +866,22 @@ nextsep(char *s, char **t) {! struct request *c = tp->tp_arg; struct transport *t = c->t; + struct querystring *qs = t->qs; FILE *fp = t->fp; struct repo_commit *rc = TAILQ_FIRST(&t->repo_commits); char *line = NULL; size_t linesize = 0; ssize_t linelen; + struct gotweb_url patch_url, tree_url = { + .action = TREE, + .index_page = -1, + .page = -1, + .path = qs->path, + .commit = rc->commit_id, + }; + + memcpy(&patch_url, &tree_url, sizeof(patch_url)); + patch_url.action = PATCH; !}

Commit Diff

@@ -892,6 +903,16 @@ nextsep(char *s, char **t)
Message:
{{ rc->commit_msg }}
+
Actions:
+
+ + Patch + + {{" | "}} + + Tree + +