repo->clone_url = xstrdup(value);
else if (!strcmp(name, "desc"))
repo->desc = xstrdup(value);
+ else if (!strcmp(name, "desc-html"))
+ repo->desc_html = xstrdup(value);
else if (!strcmp(name, "owner"))
repo->owner = xstrdup(value);
else if (!strcmp(name, "homepage"))
ctx.cfg.root_title = xstrdup(value);
else if (!strcmp(name, "root-desc"))
ctx.cfg.root_desc = xstrdup(value);
+ else if (!strcmp(name, "root-desc-html"))
+ ctx.cfg.root_desc_html = xstrdup(value);
else if (!strcmp(name, "root-readme"))
ctx.cfg.root_readme = xstrdup(value);
else if (!strcmp(name, "css"))
char *name;
char *path;
char *desc;
+ char *desc_html;
char *owner;
char *homepage;
char *defbranch;
char *robots;
char *root_title;
char *root_desc;
+ char *root_desc_html;
char *root_readme;
char *script_name;
char *section;
Text printed below the heading on the repository index page. Default
value: "a fast webinterface for the git dscm".
+root-desc-html::
+ Optional additional raw html to show in the header after root-desc.
+ Default value: none.
+
root-readme::
The content of the file specified with this option will be included
verbatim below the "about" link on the repository index page. Default
repo.desc::
The value to show as repository description. Default value: none.
+repo.desc-html::
+ Optional additional raw html to show in the header after repo.desc.
+ Default value: none. It's possible to leave repo.desc undefined,
+ and just define repo.desc-html. But it would mean the repo name
+ in the cgit repo list page will show the html parts. Depending on
+ the html, it may be preferable to define repo.desc so the repo list
+ can just use that and leave out the html.
+
repo.email-filter::
Override the default email-filter. Default value: none. See also:
"enable-filter-overrides". See also: "FILTER API".
html("<tr><td class='sub'>");
if (ctx.repo) {
- html_txt(ctx.repo->desc);
+ if (ctx.repo->desc &&
+ (ctx.repo->desc != cgit_default_repo_desc ||
+ !ctx.repo->desc_html))
+ html_txt(ctx.repo->desc);
+ if (ctx.repo->desc_html)
+ html(ctx.repo->desc_html);
html("</td><td class='sub right'>");
html_txt(ctx.repo->owner);
} else {
if (ctx.cfg.root_desc)
html_txt(ctx.cfg.root_desc);
+ if (ctx.cfg.root_desc_html)
+ html(ctx.cfg.root_desc_html);
}
html("</td></tr></table>\n");
}