commit e6b69762aa52f103227c9df61f3dc4c199cab22c from: Omar Polo date: Fri Dec 01 19:36:40 2023 UTC gotwebd: add actions in the diff view too commit - 7f65bb55b8cfe0f964fd7cb845acfbc28621730e commit + e6b69762aa52f103227c9df61f3dc4c199cab22c blob - 10f919b21d90a1aaa02ec7f87e82570e56e481e0 blob + 9e76331c9d3706b7909ec6ab013b194bc66801cc --- 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 + +