- html("</td><td>");
- if (S_ISDIR(mode)) {
- html("<div class='ls-dir'><a href='");
- html_attr(cgit_pageurl(cgit_query_repo, "tree",
- fmt("id=%s&path=%s%s/",
+ html("</td><td ");
+ if (S_ISDIRLNK(mode)) {
+ htmlf("class='ls-mod'><a href='");
+ html_attr(fmt(cgit_repo->module_link,
+ name,
+ sha1_to_hex(sha1)));
+ } else if (S_ISDIR(mode)) {
+ html("class='ls-dir'><a href='");
+ html_attr(cgit_pageurl(cgit_query_repo, "tree",
+ fmt("h=%s&id=%s&path=%s%s/",
+ curr_rev,