summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
authorLars Hjemli <hjemli@gmail.com>2008-10-05 17:09:58 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-10-05 17:09:58 (UTC)
commitb9aabf0b8fbf3a3ab69010ee2c9ed5426c751912 (patch) (unidiff)
tree7a75f470154e12f365189600ac08d9df2d15547d /ui-shared.c
parent23ffba78b4572f35f0ee52410dde9a16e6d02ce5 (diff)
downloadcgit-b9aabf0b8fbf3a3ab69010ee2c9ed5426c751912.zip
cgit-b9aabf0b8fbf3a3ab69010ee2c9ed5426c751912.tar.gz
cgit-b9aabf0b8fbf3a3ab69010ee2c9ed5426c751912.tar.bz2
ui-shared: reword the standard page footer
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c
index d909f55..f858ab6 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -475,51 +475,51 @@ void cgit_print_docstart(struct cgit_context *ctx)
475 html_attr(ctx->cfg.css); 475 html_attr(ctx->cfg.css);
476 html("'/>\n"); 476 html("'/>\n");
477 if (ctx->cfg.favicon) { 477 if (ctx->cfg.favicon) {
478 html("<link rel='shortcut icon' href='"); 478 html("<link rel='shortcut icon' href='");
479 html_attr(ctx->cfg.favicon); 479 html_attr(ctx->cfg.favicon);
480 html("'/>\n"); 480 html("'/>\n");
481 } 481 }
482 if (host && ctx->repo) { 482 if (host && ctx->repo) {
483 html("<link rel='alternate' title='Atom feed' href='http://"); 483 html("<link rel='alternate' title='Atom feed' href='http://");
484 html_attr(cgit_hosturl()); 484 html_attr(cgit_hosturl());
485 html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path, 485 html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path,
486 fmt("h=%s", ctx->qry.head))); 486 fmt("h=%s", ctx->qry.head)));
487 html("' type='application/atom+xml'/>"); 487 html("' type='application/atom+xml'/>");
488 } 488 }
489 html("</head>\n"); 489 html("</head>\n");
490 html("<body>\n"); 490 html("<body>\n");
491} 491}
492 492
493void cgit_print_docend() 493void cgit_print_docend()
494{ 494{
495 html("</div>"); 495 html("</div>");
496 if (ctx.cfg.footer) 496 if (ctx.cfg.footer)
497 html_include(ctx.cfg.footer); 497 html_include(ctx.cfg.footer);
498 else { 498 else {
499 html("<div class='footer'>generated "); 499 htmlf("<div class='footer'>generated by cgit %s at ",
500 cgit_version);
500 cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time); 501 cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time);
501 htmlf(" by cgit %s", cgit_version);
502 html("</div>\n"); 502 html("</div>\n");
503 } 503 }
504 html("</body>\n</html>\n"); 504 html("</body>\n</html>\n");
505} 505}
506 506
507int print_branch_option(const char *refname, const unsigned char *sha1, 507int print_branch_option(const char *refname, const unsigned char *sha1,
508 int flags, void *cb_data) 508 int flags, void *cb_data)
509{ 509{
510 char *name = (char *)refname; 510 char *name = (char *)refname;
511 html_option(name, name, ctx.qry.head); 511 html_option(name, name, ctx.qry.head);
512 return 0; 512 return 0;
513} 513}
514 514
515int print_archive_ref(const char *refname, const unsigned char *sha1, 515int print_archive_ref(const char *refname, const unsigned char *sha1,
516 int flags, void *cb_data) 516 int flags, void *cb_data)
517{ 517{
518 struct tag *tag; 518 struct tag *tag;
519 struct taginfo *info; 519 struct taginfo *info;
520 struct object *obj; 520 struct object *obj;
521 char buf[256], *url; 521 char buf[256], *url;
522 unsigned char fileid[20]; 522 unsigned char fileid[20];
523 int *header = (int *)cb_data; 523 int *header = (int *)cb_data;
524 524
525 if (prefixcmp(refname, "refs/archives")) 525 if (prefixcmp(refname, "refs/archives"))