X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/aaa3f7854232726d5530f66b9459e036bbba15cb..ad230267f8ecae6cb4f0da17d7a5f75ba38203e2:/ui-atom.c diff --git a/ui-atom.c b/ui-atom.c index 881872c..b218456 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -24,7 +24,7 @@ void add_entry(struct commit *commit, char *host) html_txt(info->subject); html("\n"); html(""); - cgit_print_date(info->author_date, FMT_ATOMDATE, 0); + cgit_print_date(info->committer_date, FMT_ATOMDATE, 0); html("\n"); html("\n"); if (info->author) { @@ -85,7 +85,9 @@ void cgit_print_atom(char *tip, char *path, int max_count) struct rev_info rev; int argc = 2; - if (!tip) + if (ctx.qry.show_all) + argv[1] = "--all"; + else if (!tip) argv[1] = ctx.qry.head; if (path) { @@ -109,6 +111,14 @@ void cgit_print_atom(char *tip, char *path, int max_count) html("\n"); html(""); html_txt(ctx.repo->name); + if (path) { + html("/"); + html_txt(path); + } + if (tip && !ctx.qry.show_all) { + html(", branch "); + html_txt(tip); + } html("\n"); html(""); html_txt(ctx.repo->desc);