X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8eef4589d0ba80fd4e6a9ce2f3ca4fcf266a64e0..121e65391446069a538ae8d3f7938452178de7c6:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 23a893b..ac5a287 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -559,25 +559,32 @@ void cgit_submodule_link(const char *class, char *path, const char *rev) item = lookup_path(list, path); } } - html("module_link, dir, rev); + if (item || ctx.repo->module_link) { + html("module_link, dir, rev); + } + html("'>"); + html_txt(path); + html(""); } else { - html("#"); + html(""); + html_txt(path); + html(""); } - html("'>"); - html_txt(path); - html(""); html_txtf(" @ %.7s", rev); if (item && tail) path[len - 1] = tail; @@ -888,6 +895,8 @@ static void print_header(void) cgit_add_hidden_formfields(0, 1, ctx.qry.page); html(" "); html(""); html("");