- html("<tr><td>");
- url = cgit_pageurl(cgit_query_repo, "blob",
- fmt("id=%s&path=%s", sha1_to_hex(fileid),
- buf));
- html_link_open(url, NULL, NULL);
- html_txt(buf);
- html_link_close();
- html("</td><tr>");
- return 0;
-}
-
-static void cgit_print_branches()
-{
- html("<tr class='nohover'><th class='left'>Branch</th>"
- "<th class='left'>Idle</th>"
- "<th class='left'>Author</th>"
- "<th class='left'>Head commit</th></tr>\n");
- for_each_branch_ref(cgit_print_branch_cb, NULL);
-}
-
-static void cgit_print_tags()
-{
- header = 0;
- for_each_tag_ref(cgit_print_tag_cb, NULL);
-}
-
-static void cgit_print_archives()
-{
- header = 0;
- for_each_ref(cgit_print_archive_cb, NULL);
- if (header)
- html("</table>");
-}
-
-void cgit_print_summary()
-{
- html("<table class='list nowrap'>");
- html("<tr class='nohover'><td id='summary' colspan='3'>");
- html("<h2>");
- html_txt(cgit_repo->name);
- html(" - ");
- html_txt(cgit_repo->desc);
- html("</h2>");
- html("</td><td id='archivelist'>");
- cgit_print_archives();
- html("</td></tr>");
- cgit_print_branches();
- html("<tr class='nohover'><td colspan='4'> </td></tr>");
- cgit_print_tags();
- html("</table>");
+ html("<div id='summary'>");
+ if (ctx.repo->about_filter)
+ cgit_open_filter(ctx.repo->about_filter);
+ if (ref)
+ cgit_print_file(tmp, ref);
+ else
+ html_include(tmp);
+ if (ctx.repo->about_filter)
+ cgit_close_filter(ctx.repo->about_filter);
+ html("</div>");