diff options
author | lookshe <github@lookshe.org> | 2016-02-01 13:26:29 +0100 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2016-02-01 13:26:29 +0100 |
commit | 36a1d663a66e0e6226d55f477287578d867c6fb8 (patch) | |
tree | ff7e3c217fd589eb36e137b0eba0821b403fb6f0 /ui-shared.c | |
parent | 86ff85e75af635b3700b221625dfca4c7002218f (diff) |
added link to author (similar to gitweb)
Diffstat (limited to 'ui-shared.c')
-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>"); +} |