diff options
author | lookshe <github@lookshe.org> | 2016-02-26 10:59:52 +0100 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2016-02-26 10:59:52 +0100 |
commit | 98c3bb0e3b2953abffbe2ba43e782550be006a37 (patch) | |
tree | a299b531a2b40e64ae6a65c114d531c17454cf2e | |
parent | 4d7d10dba5215da5c4a284cbe13e13e085c45d93 (diff) |
check for flyspray-links in summary/refs-page
-rw-r--r-- | ui-refs.c | 2 | ||||
-rw-r--r-- | ui-shared.c | 12 |
2 files changed, 7 insertions, 7 deletions
@@ -67,7 +67,7 @@ static int print_branch(struct refinfo *ref) html("</td><td>"); if (ref->object->type == OBJ_COMMIT) { - cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL); + cgit_commit_link2(info->subject, NULL, NULL, name, NULL, NULL, true); html("</td><td>"); cgit_open_filter(ctx.repo->email_filter, info->author_email, "refs"); cgit_author_link(info->author, name); diff --git a/ui-shared.c b/ui-shared.c index 2d695a7..059f449 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -350,18 +350,18 @@ void cgit_log_link(const char *name, const char *title, const char *class, void cgit_commit_link(char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) { - if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) { - name[ctx.cfg.max_msg_len] = '\0'; - name[ctx.cfg.max_msg_len - 1] = '.'; - name[ctx.cfg.max_msg_len - 2] = '.'; - name[ctx.cfg.max_msg_len - 3] = '.'; - } cgit_commit_link2(name, title, class, head, rev, path, false); } void cgit_commit_link2(char *name, const char *title, const char *class, const char *head, const char *rev, const char *path, bool checkForIssueLink) { + if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) { + name[ctx.cfg.max_msg_len] = '\0'; + name[ctx.cfg.max_msg_len - 1] = '.'; + name[ctx.cfg.max_msg_len - 2] = '.'; + name[ctx.cfg.max_msg_len - 3] = '.'; + } if (checkForIssueLink) { int last_match = 0; int offset = 0; |