diff options
Diffstat (limited to '')
-rw-r--r-- | ui-shared.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c index 54bbde7..037d250 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1104,3 +1104,15 @@ void cgit_print_snapshot_links(const char *repo, const char *head, } strbuf_release(&filename); } + +extern void cgit_author_link(char *author) +{ + char *delim; + + delim = repolink(NULL, NULL, "log", NULL, NULL); + html(delim); + htmlf("qt=author&q=%s", author); + html("'>"); + html_txt(author); + html("</a>"); +} |