{! int cgit_repolist_is_visible(struct cgit_repo *repo); !} {! void cgit_repolist_print_modtime(struct cgit_repo *repo); !} {! void cgit_shared_site_url(const char *page, const char *search, const char *sort, int ofs, int always_root); !} {% page cgit_print_repolist %} {! ctx.page.title = ctx.cfg.root_title; !} {! page_start(); !} {# Repo header #} {{ ctx.cfg.root_title }} {# Main content #} {# Search box #} {# Heroicons micro magnifying-glass #} {# Repo list #} {% for int i = 0; i < cgit_repolist.count; i++ %} {! ctx.repo = &cgit_repolist.repos[i]; !} {! if (!cgit_repolist_is_visible(ctx.repo)) { continue; } !} 0 %} class="border-t border-gray-300 pt-4 mt-4"{% endif %}> {# Heroicons outline cube #} {! char *repourl = cgit_repourl(ctx.repo->url); !} {{ ctx.repo->name }} {! free(repourl); !} {{ ctx.repo->desc }} Updated {! cgit_repolist_print_modtime(ctx.repo); !} ago {% endfor %} {! page_end(); !} {% endpage %}