aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2016-02-01 13:26:29 +0100
committerlookshe <github@lookshe.org>2016-02-01 13:26:29 +0100
commit36a1d663a66e0e6226d55f477287578d867c6fb8 (patch)
treeff7e3c217fd589eb36e137b0eba0821b403fb6f0 /ui-shared.c
parent86ff85e75af635b3700b221625dfca4c7002218f (diff)
added link to author (similar to gitweb)
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c12
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&amp;q=%s", author);
+ html("'>");
+ html_txt(author);
+ html("</a>");
+}