summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
authorDiego Ongaro <ongardie@gmail.com>2009-06-10 23:18:34 (UTC)
committer Diego Ongaro <ongardie@gmail.com>2009-06-11 05:01:32 (UTC)
commit694dd43886f23723f415aed3afb62131cdbcaa51 (patch) (side-by-side diff)
tree891ce59bcac2673e9ca294cfa83e69eec23ccbd5 /ui-shared.c
parent87a89aed41136d388537b146000c4af6c1135a8c (diff)
downloadcgit-694dd43886f23723f415aed3afb62131cdbcaa51.zip
cgit-694dd43886f23723f415aed3afb62131cdbcaa51.tar.gz
cgit-694dd43886f23723f415aed3afb62131cdbcaa51.tar.bz2
use cgit_httpscheme() for atom feed
Diffstat (limited to 'ui-shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 749ea35..5ce2bc5 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -494,25 +494,26 @@ void cgit_print_docstart(struct cgit_context *ctx)
htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
if (ctx->cfg.robots && *ctx->cfg.robots)
htmlf("<meta name='robots' content='%s'/>\n", ctx->cfg.robots);
html("<link rel='stylesheet' type='text/css' href='");
html_attr(ctx->cfg.css);
html("'/>\n");
if (ctx->cfg.favicon) {
html("<link rel='shortcut icon' href='");
html_attr(ctx->cfg.favicon);
html("'/>\n");
}
if (host && ctx->repo) {
- html("<link rel='alternate' title='Atom feed' href='http://");
+ html("<link rel='alternate' title='Atom feed' href='");
+ html(cgit_httpscheme());
html_attr(cgit_hosturl());
html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path,
fmt("h=%s", ctx->qry.head)));
html("' type='application/atom+xml'/>");
}
html("</head>\n");
html("<body>\n");
if (ctx->cfg.header)
html_include(ctx->cfg.header);
}
void cgit_print_docend()