mirror of
https://git.zx2c4.com/cgit
synced 2025-08-02 09:05:01 +02:00
Add and use cgit_tree_link()
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>
This commit is contained in:
parent
f91b9696a3
commit
44947bfcdc
5 changed files with 107 additions and 38 deletions
3
cgit.h
3
cgit.h
|
@ -201,6 +201,9 @@ extern char *cgit_repourl(const char *reponame);
|
|||
extern char *cgit_pageurl(const char *reponame, const char *pagename,
|
||||
const char *query);
|
||||
|
||||
extern void cgit_tree_link(char *name, char *title, char *class, char *head,
|
||||
char *rev, char *path);
|
||||
|
||||
extern void cgit_print_error(char *msg);
|
||||
extern void cgit_print_date(time_t secs, char *format);
|
||||
extern void cgit_print_age(time_t t, time_t max_relative, char *format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue