- html_link_open(cgit_pageurl(repo->name, "commit", NULL),
- "Commit: display last commit", NULL);
- html("C</a> ");
- html_link_open(cgit_pageurl(repo->name, "diff", NULL),
- "Diff: see changes introduced by last commit", NULL);
- html("D</a> ");
- html_link_open(cgit_pageurl(repo->name, "log", NULL),
- "Log: show history of the main branch", NULL);
- html("L</a> ");
- html_link_open(cgit_pageurl(repo->name, "tree", NULL),
- "Tree: browse the files in the main branch", NULL);
- html("T</a>");
- html("</td></tr>\n");
+ print_modtime(ctx.repo);
+ html("</td>");
+ if (ctx.cfg.enable_index_links) {
+ html("<td>");
+ html_link_open(cgit_repourl(ctx.repo->url),
+ NULL, "button");
+ html("summary</a>");
+ cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
+ 0, NULL, NULL);
+ cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
+ html("</td>");
+ }
+ html("</tr>\n");