summaryrefslogtreecommitdiffstatshomepage
path: root/ui-shared.c
Commit message (Expand)AuthorAge
* ui-shared: add support for header/footer options when embedded=1Lars Hjemli2009-08-11
* ui-shared: add support for NO_HTTP=1/--nohttpLars Hjemli2009-08-10
* Cleanup handling of environment variablesLars Hjemli2009-08-10
* Merge branch 'lh/embedded'Lars Hjemli2009-07-25
|\
| * Add support for 'noheader' optionLars Hjemli2009-07-25
| * Add support for an 'embedded' option in cgitrcLars Hjemli2009-02-02
* | Merge branch 'ml/head-include'Lars Hjemli2009-07-25
|\ \
| * | Add head-include configuration option.Mark Lodato2009-06-07
| |/
* | Merge branch 'plain-etag'Lars Hjemli2009-07-25
|\ \
| * | Add support for HEAD requestsLars Hjemli2009-02-19
| * | Add support for ETag in 'plain' viewLars Hjemli2009-02-19
| |/
* | Merge branch 'do/https'Lars Hjemli2009-07-25
|\ \
| * | use cgit_httpscheme() for atom feedDiego Ongaro2009-06-11
| * | add cgit_httpscheme() -> http:// or https://Diego Ongaro2009-06-11
| |/
* / Return http statuscode 404 on unknown branchLars Hjemli2009-06-07
|/
* Add support for a custom headerLars Hjemli2009-01-29
* Merge branch 'lh/stats'Lars Hjemli2009-01-27
|\
| * ui-shared: externalize add_hidden_formfields()Lars Hjemli2008-12-07
| * ui-shared: add and use cgit_stats_link()Lars Hjemli2008-12-07
| * ui-stats: replace 'enable-stats' setting with 'max-stats'Lars Hjemli2008-12-07
| * Add a 'stats' page to each repoLars Hjemli2008-12-06
* | Merge branch 'stable'Lars Hjemli2009-01-11
|\ \
| * | Avoid SEGFAULT on invalid requestsLars Hjemli2009-01-11
| |/
* | Merge branch 'full-log'Lars Hjemli2008-12-06
|\ \
| * | ui-log: add support for showing the full commit messageLars Hjemli2008-11-29
| |/
* | ui-shared: shorten the sha1 printed by cgit_object_linkLars Hjemli2008-12-01
* | ui-shared: exploit snapshot dwimmery in cgit_print_snapshot_linksLars Hjemli2008-12-01
|/
* ui-shared: specify correct css class for summary tabLars Hjemli2008-10-06
* ui-shared: add cgit_tag_link()Lars Hjemli2008-10-05
* ui-shared: generate proper links in cgit_object_link()Lars Hjemli2008-10-05
* ui-shared: use html_url_path() to get properly escaped url in form actionLars Hjemli2008-10-05
* ui-shared: reword the standard page footerLars Hjemli2008-10-05
* ui-shared: do not print repo name on the "summary" tabLars Hjemli2008-10-05
* ui-repolist + ui-shared: Use cgit_summary_link()Lars Hjemli2008-10-05
* ui-shared.c: add cgit_summary_link()Lars Hjemli2008-10-05
* ui-shared.c: use html_url_path() in repolink()Lars Hjemli2008-10-05
* ui-shared.c: use html_url_arg()Lars Hjemli2008-10-05
* use Host: header to generate cgit_hosturlEric Wong2008-09-02
* Merge branch 'lh/plain'Lars Hjemli2008-09-01
|\
| * ui-tree: link to plain view instead of blob viewLars Hjemli2008-08-06
| * Implement plain viewLars Hjemli2008-08-06
* | Add atom-supportLars Hjemli2008-08-01
|/
* Added `local-time` option to cgitrcStefan Naewe2008-08-01
* Be prepared for empty repositoriesLars Hjemli2008-07-27
* ui-shared: show repo owner along with descriptionLars Hjemli2008-07-27
* Add a favicon option to cgitrcLars Hjemli2008-07-19
* Add support for including a footer on all pagesLars Hjemli2008-06-26
* Add link to index page from repo header, remove page nameLars Hjemli2008-05-04
* Add footer with page creation time and cgit version on all pagesLars Hjemli2008-05-03
* Add cgit_index_link() function with support for offsetLars Hjemli2008-05-03
39; type='text/html' href='http://"); html_attr(host); html_attr(cgit_pageurl(ctx.repo->url, "commit", NULL)); if (ctx.cfg.virtual_root) delim = '?'; htmlf("%cid=%s", delim, hex); html("'/>\n"); } htmlf("<id>%s</id>\n", hex); html("<content type='text'>\n"); html_txt(info->msg); html("</content>\n"); html("<content type='xhtml'>\n"); html("<div xmlns='http://www.w3.org/1999/xhtml'>\n"); html("<pre>\n"); html_txt(info->msg); html("</pre>\n"); html("</div>\n"); html("</content>\n"); html("</entry>\n"); cgit_free_commitinfo(info); } void cgit_print_atom(char *tip, char *path, int max_count) { char *host; const char *argv[] = {NULL, tip, NULL, NULL, NULL}; struct commit *commit; struct rev_info rev; int argc = 2; if (!tip) argv[1] = ctx.qry.head; if (path) { argv[argc++] = "--"; argv[argc++] = path; } init_revisions(&rev, NULL); rev.abbrev = DEFAULT_ABBREV; rev.commit_format = CMIT_FMT_DEFAULT; rev.verbose_header = 1; rev.show_root_diff = 0; rev.max_count = max_count; setup_revisions(argc, argv, &rev, NULL); prepare_revision_walk(&rev); host = cgit_hosturl(); ctx.page.mimetype = "text/xml"; ctx.page.charset = "utf-8"; cgit_print_http_headers(&ctx); html("<feed xmlns='http://www.w3.org/2005/Atom'>\n"); html("<title>"); html_txt(ctx.repo->name); html("</title>\n"); html("<subtitle>"); html_txt(ctx.repo->desc); html("</subtitle>\n"); if (host) { html("<link rel='alternate' type='text/html' href='http://"); html_attr(host); html_attr(cgit_repourl(ctx.repo->url)); html("'/>\n"); } while ((commit = get_revision(&rev)) != NULL) { add_entry(commit, host); free(commit->buffer); commit->buffer = NULL; free_commit_list(commit->parents); commit->parents = NULL; } html("</feed>\n"); }