AgeCommit message (Collapse)AuthorLines
ui-refs: use cgit_tag_link()Lars Hjemli-6/+2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Make branches, tags and log play better together in the summary viewLars Hjemli-13/+12
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Add ui-shared.hLars Hjemli-0/+1
This is finally a proper headerfile for the shared ui-functions which used to reside in cgit.h Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Add separate header-files for each page/viewLars Hjemli-0/+172
Yet another step towards removing cgit.h. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Introduce html.hLars Hjemli-3/+1
All html-functions can be quite easily separated from the rest of cgit, so lets do it; the only issue was html_filemode which uses some git-defined macros so the function is moved into ui-shared.c::cgit_print_filemode(). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Introduce struct cgit_contextLars Hjemli-2/+2
This struct will hold all the cgit runtime information currently found in a multitude of global variables. The first cleanup removes all querystring-related variables. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Add support for refs viewLars Hjemli-0/+30
This enables the new urls $repo/refs, $repo/refs/heads and $repo/refs/tags, which can be used to print _all_ branches and/or tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com>