X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/389cc17357e2040c9542d3e085f64a8d2f085e9a..a5e15537268410e268c7b26aa69d03b347c326c8:/ui-refs.c?ds=sidebyside diff --git a/ui-refs.c b/ui-refs.c index 0ae0612..d125459 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -1,6 +1,6 @@ /* ui-refs.c: browse symbolic refs * - * Copyright (C) 2006 Lars Hjemli + * Copyright (C) 2006-2014 cgit Development Team * * Licensed under GNU General Public License v2 * (see COPYING for full license text) @@ -77,7 +77,9 @@ static int print_branch(struct refinfo *ref) if (ref->object->type == OBJ_COMMIT) { cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0); html(""); + cgit_open_filter(ctx.repo->email_filter, info->author_email); html_txt(info->author); + cgit_close_filter(ctx.repo->email_filter); html(""); cgit_print_age(info->commit->date, -1, NULL); } else { @@ -154,10 +156,15 @@ static int print_tag(struct refinfo *ref) cgit_object_link(obj); html(""); if (info) { - if (info->tagger) - html(info->tagger); + if (info->tagger) { + cgit_open_filter(ctx.repo->email_filter, info->tagger_email); + html_txt(info->tagger); + cgit_close_filter(ctx.repo->email_filter); + } } else if (ref->object->type == OBJ_COMMIT) { - html(ref->commit->author); + cgit_open_filter(ctx.repo->email_filter, ref->commit->author_email); + html_txt(ref->commit->author); + cgit_close_filter(ctx.repo->email_filter); } html(""); if (info) { @@ -240,9 +247,9 @@ void cgit_print_refs() html(""); - if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5)) + if (ctx.qry.path && !prefixcmp(ctx.qry.path, "heads")) cgit_print_branches(0); - else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4)) + else if (ctx.qry.path && !prefixcmp(ctx.qry.path, "tags")) cgit_print_tags(0); else { cgit_print_branches(0);