summaryrefslogtreecommitdiffabout
path: root/ui-tree.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-22Add support for line number in url fragmentLars Hjemli1-1/+1
With this change, urls like http://hjemli.net/git/cgit/tree/ui-tree.c#43 can be used to jump directly to the specified line number. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-07-21link raw blob from tree file viewMichael Krelin1-0/+4
Signed-off-by: Michael Krelin <hacker@klever.net>
2007-06-29Add ofs argument to cgit_log_link and use it in ui-log.cLars Hjemli1-1/+1
This fixes a bug in the prev/next links on the log page: when on the default branch the links to prev/next page would contain h=(null). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-18Change S/L/T to summary/log/treeLars Hjemli1-1/+1
In yet another attempt at better usability, the cryptic S/L/T links are changed to show their full name. Suggested-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-17Add cgit_commit_link() + support for id=sha1 to commit viewLars Hjemli1-1/+0
This adds a function to generate links to the commit page and extends said page to use id from querystring as primary revision specified (fallback to h). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-17Add git_log_link() and fix bug in generic repolink functionLars Hjemli1-8/+4
The generic repolink function compared head with cgit_query_head, which almost always would be the same pointer. The test now compares with repo.defbranch, which is the wanted behavour. Bug discovered while adding cgit_log_link(), so this commit also contain that change. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-17ui-tree: html/css cleanupLars Hjemli1-10/+8
Various fixes to make html and css more "clean". The only visible change is the link to file/directory log: it is now printed as "L" (for Log) instead of "H" (for History). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-16Add and use cgit_tree_link()Lars Hjemli1-15/+18
This creates a new function used to generate links to 'tree' page and uses the function everywhere a link to the 'tree' page is generated. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-16ui-tree: make blob viewer generate valid htmlLars Hjemli1-1/+0
A leftover '</td></tr>' made ui-tree generate invalid html for blob content. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-16ui-tree: unify with ui-view, use path to select tree/blobLars Hjemli1-42/+152
This teaches ui-tree to show both trees and blobs, thereby making ui-view superfluous. At the same time, ui-tree is extended to honour the specified path instead of requiering a tree/blob sha1.
2007-05-31Use &amp; instead of & in URLs.Ondrej Jirman1-3/+3
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-05-31Fixed unexpected tags in html output.Ondrej Jirman1-1/+1
At least those that were catched by tidy. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-05-15Add support for tree listing via h parameterLars Hjemli1-0/+10
This makes the tree page benefit from repo.defbranch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-05-14Add log filtering by path and link to it from tree viewLars Hjemli1-6/+19
This enables path-filtering in log-view, and adds a link per entry in tree-view to show the log for each file/directory. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-05-11Add submodule links in tree listingLars Hjemli1-9/+10
When a submodule occurs in a tree, generate a link to show the module/commit. The link is specified as a sprintf string in /etc/cgitrc, using parameters 'module-link' and 'repo.module-link'. This should probably be extended with repo.module-link.$path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli1-11/+13
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-02-20Layout updateLars Hjemli1-1/+0
2007-01-27Cleanup table listingsLars Hjemli1-1/+1
Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
2007-01-11WIP: add paths/backlinks to tree/blobviewLars Hjemli1-3/+9
2006-12-17Use html_filemode in ui-tree.cLars Hjemli1-4/+7
No reason to show "100644" when we can show "-rw-r--r--" Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-15Add ui-commit.c + misc ui cleanupsLars Hjemli1-3/+3
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2006-12-12Add display of tree content w/ui-tree.cLars Hjemli1-0/+70
Signed-off-by: Lars Hjemli <hjemli@gmail.com>