commit - ab9ccc7339c02d546725d714212f9048dbeeece4
commit + afe4a04407a4ef6ba70d20c37f581976861d7b8e
blob - 1dfc78d57fc9ab80b7e23b744feb8e3039c9de28
blob + 339562fbdadf6ba8a7901a6da2647f58c213a0bb
--- gotwebd/pages.tmpl
+++ gotwebd/pages.tmpl
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;
!}
<header class="subtitle">
<h2>Blame</h2>
</dd>
<dt>Message:</dt>
<dd class="commit-msg">{{ rc->commit_msg }}</dd>
+ <dt>Actions:</dt>
+ <dd>
+ <a href="{{ render gotweb_render_url(c, &briefs_url) }}">
+ History
+ </a>
+ {{ " — " | unsafe }}
+ <a href="{{ render gotweb_render_url(c, &blob_url) }}">
+ Blob
+ </a>
+ {{ " — " | unsafe }}
+ <a href="{{ render gotweb_render_url(c, &raw_url) }}">
+ Raw File
+ </a>
+ </dd>
</dl>
</div>
<hr />