--- ui-shared.c | 6 ++++++ ui-shared.h | 3 +++ ui-tree.c | 3 +++ 3 files changed, 12 insertions(+) diff --git a/ui-shared.c b/ui-shared.c index d2358f2..91b7d6a 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -345,6 +345,12 @@ void cgit_tree_link(const char *name, const char *title, const char *class, reporevlink("tree", name, title, class, head, rev, path); } +void cgit_about_link(const char *name, const char *title, const char *class, + const char *head, const char *rev, const char *path) +{ + reporevlink("about", name, title, class, head, rev, path); +} + void cgit_plain_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) { diff --git a/ui-shared.h b/ui-shared.h index 6964873..e01d5d8 100644 --- a/ui-shared.h +++ b/ui-shared.h @@ -24,6 +24,9 @@ extern void cgit_tag_link(const char *name, const char *title, extern void cgit_tree_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path); +extern void cgit_about_link(const char *name, const char *title, + const char *class, const char *head, + const char *rev, const char *path); extern void cgit_plain_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path); diff --git a/ui-tree.c b/ui-tree.c index 84eb17d..1c7540a 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -108,6 +108,9 @@ static void print_object(const struct object_id *oid, const char *path, const ch cgit_print_layout_start(); htmlf("blob: %s (", oid_to_hex(oid)); + cgit_about_link("about", NULL, NULL, ctx.qry.head, + rev, path); + html(") ("); cgit_plain_link("plain", NULL, NULL, ctx.qry.head, rev, path); if (ctx.repo->enable_blame) {