summaryrefslogtreecommitdiffstatshomepage
path: root/ui-shared.c
Commit message (Expand)AuthorAge
...
* Don't include current SHA1 in 'log' menu-itemLars Hjemli2007-11-03
* Don't include current path in menu linksLars Hjemli2007-11-03
* Fix search form action/hidden fieldsLars Hjemli2007-11-03
* Add search parameters to cgit_log_linkLars Hjemli2007-11-03
* Change the cgit layoutLars Hjemli2007-10-30
* Teach cgit_object_link() about tag objectsLars Hjemli2007-10-28
* Teach log search about --grep, --author and --committerLars Hjemli2007-10-28
* Add links to the new refs page from summary pageLars Hjemli2007-10-27
* cgit_print_snapshot_links: use url to specify snapshot nameLars Hjemli2007-07-23
* Merge branch 'master' of git://git.klever.net/patchwork/cgitLars Hjemli2007-07-22
|\
| * introduce cgit_repobasenameMichael Krelin2007-07-21
| * added snapshot filename to the linkMichael Krelin2007-07-21
* | Add ui-tag.cLars Hjemli2007-07-22
|/
* Merge branch 'lh/menu'Lars Hjemli2007-06-29
|\
| * Add ofs argument to cgit_log_link and use it in ui-log.cLars Hjemli2007-06-29
| * Do not include current path in the "tree" menu linkLars Hjemli2007-06-26
| * Change "files" to "tree"Lars Hjemli2007-06-18
| * Add more menuitems on repo pagesLars Hjemli2007-06-18
* | Add version info from git-describeLars Hjemli2007-06-18
|/
* Add cgit_diff_link()Lars Hjemli2007-06-17
* Add cgit_commit_link() + support for id=sha1 to commit viewLars Hjemli2007-06-17
* Add git_log_link() and fix bug in generic repolink functionLars Hjemli2007-06-17
* ui-shared: use strcmp() to compare stringsLars Hjemli2007-06-17
* Add and use cgit_tree_link()Lars Hjemli2007-06-17
* Use & instead of & in URLs.Ondrej Jirman2007-05-31
* Bad html: it's nice to add alt-attributesLars Hjemli2007-05-24
* Bad html: <form> should have an action-attributeLars Hjemli2007-05-24
* Add cgit_print_age() functionLars Hjemli2007-05-22
* Enable url=value querystring parameterLars Hjemli2007-05-18
* Make git_pageurl handle NULL querystringsLars Hjemli2007-05-16
* Don't hardcode urls when SCRIPT_NAME is availableLars Hjemli2007-05-15
* ui-shared.c: fix whitespace breakageLars Hjemli2007-05-15
* Layout updateLars Hjemli2007-02-21
* Add support for snapshotsLars Hjemli2007-02-08
* Fix search for non-virtual urlsLars Hjemli2007-02-03
* Change global document layoutLars Hjemli2007-01-28
* Use long instead of int when converting from TTL to secondsLars Hjemli2007-01-05
* Add generic support for search box in page headerLars Hjemli2006-12-28
* Make repo header a link to summary pageLars Hjemli2006-12-16
* Move cgit_print_date into ui-shared, reuse in ui-summaryLars Hjemli2006-12-16
* Move functions for repolist output into ui-repolist.cLars Hjemli2006-12-11
* Move common output-functions into ui-shared.cLars Hjemli2006-12-11
s="o">&commit->date); html("<tr><td>"); strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M", time); html_txt(buf); html("</td><td>"); char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); char *url = cgit_pageurl(cgit_query_repo, "commit", qry); html_link_open(url, NULL, NULL); html_ntxt(cgit_max_msg_len, info->subject); html_link_close(); files = 0; lines = 0; cgit_diff_commit(commit, inspect_files); html("</td><td class='right'>"); htmlf("%d", files); html("</td><td class='right'>"); htmlf("%d", lines); html("</td><td>"); html_txt(info->author); html("</td></tr>\n"); cgit_free_commitinfo(info); } void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path) { struct rev_info rev; struct commit *commit; const char *argv[] = {NULL, tip, NULL, NULL, NULL}; int argc = 2; int i; if (grep) argv[argc++] = fmt("--grep=%s", grep); 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; setup_revisions(argc, argv, &rev, NULL); if (rev.grep_filter) { rev.grep_filter->regflags |= REG_ICASE; compile_grep_patterns(rev.grep_filter); } prepare_revision_walk(&rev); html("<table class='list nowrap'>"); html("<tr class='nohover'><th class='left'>Date</th>" "<th class='left'>Message</th>" "<th class='left'>Files</th>" "<th class='left'>Lines</th>" "<th class='left'>Author</th></tr>\n"); if (ofs<0) ofs = 0; for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { free(commit->buffer); commit->buffer = NULL; free_commit_list(commit->parents); commit->parents = NULL; } for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) { print_commit(commit); free(commit->buffer); commit->buffer = NULL; free_commit_list(commit->parents); commit->parents = NULL; } html("</table>\n"); html("<div class='pager'>"); if (ofs > 0) { html("&nbsp;<a href='"); html(cgit_pageurl(cgit_query_repo, cgit_query_page, fmt("h=%s&ofs=%d", tip, ofs-cnt))); html("'>[prev]</a>&nbsp;"); } if ((commit = get_revision(&rev)) != NULL) { html("&nbsp;<a href='"); html(cgit_pageurl(cgit_query_repo, "log", fmt("h=%s&ofs=%d", tip, ofs+cnt))); html("'>[next]</a>&nbsp;"); } html("</div>"); }