Mercurial > sci
diff scid/page-index.c @ 46:16f1c72d1635
scid: simplify theme code
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 15 Aug 2022 17:57:34 +0200 |
parents | 6854efe15210 |
children | 3cf148705724 |
line wrap: on
line diff
--- a/scid/page-index.c Thu Aug 11 21:24:50 2022 +0200 +++ b/scid/page-index.c Mon Aug 15 17:57:34 2022 +0200 @@ -114,7 +114,7 @@ /* First, fetch all projects. */ if ((projects = db_project_list())) { update_projects(projects); - data = theme_page_index(util_json_pack("{so}", + data = theme_render("onPageIndex", util_json_pack("{so}", "projects", projects )); pageutil_render(req, KHTTP_200, KMIME_TEXT_HTML, data);