mirror of
https://git.zx2c4.com/cgit
synced 2025-07-24 04:35:46 +02:00
Extract clone URL printing to ui-shared.c
This will allow us to reuse the same logic to add clone URL <link/> elements to the header of all repo-specific pages in order to support the rel-vcs microformat. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
485b09925c
commit
bbfa006e6e
3 changed files with 51 additions and 46 deletions
|
@ -11,6 +11,8 @@ extern char *cgit_fileurl(const char *reponame, const char *pagename,
|
|||
extern char *cgit_pageurl(const char *reponame, const char *pagename,
|
||||
const char *query);
|
||||
|
||||
extern void cgit_add_clone_urls(void (*fn)(const char *));
|
||||
|
||||
extern void cgit_index_link(const char *name, const char *title,
|
||||
const char *class, const char *pattern, const char *sort, int ofs);
|
||||
extern void cgit_summary_link(const char *name, const char *title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue