+ html("<table id='layout'>");
+ html("<tr><td id='header'><a href='");
+ html_attr(cgit_rooturl());
+ html("'>");
+ html_txt(cgit_root_title);
+ html("</a></td><td id='logo'>");
+ html("<a href='");
+ html_attr(cgit_logo_link);
+ htmlf("'><img src='%s' alt='logo'/></a>", cgit_logo);
+ html("</td></tr>");
+ html("<tr><td id='crumb'>");
+ if (cgit_query_repo) {
+ html_txt(cgit_repo->name);
+ html(" (");
+ html_txt(cgit_query_head);
+ html(") : ");
+ reporevlink(NULL, "summary", NULL, NULL, cgit_query_head,
+ NULL, NULL);
+ html(" ");
+ cgit_log_link("log", NULL, NULL, cgit_query_head,
+ cgit_query_sha1, cgit_query_path, 0);
+ html(" ");
+ cgit_tree_link("tree", NULL, NULL, cgit_query_head,
+ cgit_query_sha1, NULL);
+ html(" ");
+ cgit_commit_link("commit", NULL, NULL, cgit_query_head,
+ cgit_query_sha1);
+ html(" ");
+ cgit_diff_link("diff", NULL, NULL, cgit_query_head,
+ cgit_query_sha1, cgit_query_sha2,
+ cgit_query_path);
+ } else {
+ html_txt("Index of repositories");
+ }
+ html("</td>");
+ html("<td id='search'>");