commit - 54f5c7d08171681a5416689c1732f6e9ead4b51c
commit + 4f4afeeb5798d7a06ee8d6b8669890a667787649
blob - 7d715220a107ff030e5d9e8513fcd475261cbf02
blob + e4444de3bcc58ee1f28dcb5888a91f8c8e863eb3
--- 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>
+ {{" | "}}
+ <a href="{{ render gotweb_render_url(c, &blob_url) }}">
+ Blob
+ </a>
+ {{" | "}}
+ <a href="{{ render gotweb_render_url(c, &raw_url) }}">
+ Raw File
+ </a>
+ </dd>
</dl>
</div>
<hr />