]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-summary.c
Add submodule links in tree listing
[ps-cgit] / ui-summary.c
index ff3ed4d2859baa49d8b3958003f2cd28a594c27a..0a7869b6607e06a78b9785128dd7f93a7652d2b9 100644 (file)
@@ -62,7 +62,7 @@ static void cgit_print_object_ref(struct object *obj)
        url = cgit_pageurl(cgit_query_repo, page, 
                           fmt("id=%s", sha1_to_hex(obj->sha1)));
        html_link_open(url, NULL, NULL);
-       htmlf("%s %s", type_names[obj->type]
+       htmlf("%s %s", typename(obj->type)
              sha1_to_hex(obj->sha1));
        html_link_close();
 }
@@ -129,8 +129,10 @@ static void cgit_print_tags()
 void cgit_print_summary()
 {
        html("<h2>");
-       html_txt("Repo summary page");
-       html("</h2>");
+       html(cgit_repo->name);
+       html("</h2><h3>");
+       html(cgit_repo->desc);
+       html("</h3>");
        html("<table class='list nowrap'>");
        cgit_print_branches();
        html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");