diff options
| author | Mehmet Samet Duman <froster12@naver.com> | 2026-02-13 15:03:23 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <froster12@naver.com> | 2026-02-13 15:03:23 +0300 |
| commit | 03d3fbba855583d8928f2ebd98487db14e69ae5d (patch) | |
| tree | 128166d8f57c49fc3c8416a55e93a89e76ff9a7d /cgit.c | |
| parent | 98d6a20f3724be8eb5eef639b1774c2fa964a89d (diff) | |
| download | Project-Tick-03d3fbba855583d8928f2ebd98487db14e69ae5d.tar.gz Project-Tick-03d3fbba855583d8928f2ebd98487db14e69ae5d.zip | |
feat: add support for Contributor License Agreement (CLA) page and related configuration
Signed-off-by: Mehmet Samet Duman <froster12@naver.com>
Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -161,6 +161,8 @@ static void config_cb(const char *name, const char *value) ctx.cfg.root_readme = xstrdup(value); else if (!strcmp(name, "root-coc")) ctx.cfg.root_coc = xstrdup(value); + else if (!strcmp(name, "root-cla")) + ctx.cfg.root_cla = xstrdup(value); else if (!strcmp(name, "css")) string_list_append(&ctx.cfg.css, xstrdup(value)); else if (!strcmp(name, "js")) @@ -1075,7 +1077,8 @@ static int calc_ttl(void) if (!ctx.qry.page) return ctx.cfg.cache_repo_ttl; - if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc")) + if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc") || + !strcmp(ctx.qry.page, "cla")) return ctx.cfg.cache_about_ttl; if (!strcmp(ctx.qry.page, "snapshot")) |
