ui-shared: remove "format" from cgit_print_age()

We never use any format other than FMT_SHORTDATE, so move that into the
function.

Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
John Keeping
2016-01-19 19:33:01 +00:00
committed by Jason A. Donenfeld
parent 23f7dadaab
commit 57ea1aa2a5
5 changed files with 9 additions and 9 deletions

View File

@ -73,7 +73,7 @@ static int print_branch(struct refinfo *ref)
html_txt(info->author);
cgit_close_filter(ctx.repo->email_filter);
html("</td><td colspan='2'>");
cgit_print_age(info->commit->date, -1, NULL);
cgit_print_age(info->commit->date, -1);
} else {
html("</td><td></td><td>");
cgit_object_link(ref->object);
@ -161,9 +161,9 @@ static int print_tag(struct refinfo *ref)
html("</td><td colspan='2'>");
if (info) {
if (info->tagger_date > 0)
cgit_print_age(info->tagger_date, -1, NULL);
cgit_print_age(info->tagger_date, -1);
} else if (ref->object->type == OBJ_COMMIT) {
cgit_print_age(ref->commit->commit->date, -1, NULL);
cgit_print_age(ref->commit->commit->date, -1);
}
html("</td></tr>\n");