diff options
| author | 2007-10-30 18:47:38 (JST) | |
|---|---|---|
| committer | 2007-10-30 21:38:34 (JST) | |
| commit | 0c8e184e9cbf4d3a1e907de9125f6d8210c169d6 (patch) | |
| tree | 2e82baf582b7ba0b34f498e1e7494800070067f9 /cgit.h | |
| parent | 10ac7ad1f30f914dc5ff36ba3651ef6dca11aaf7 (diff) | |
| download | cgit-0c8e184e9cbf4d3a1e907de9125f6d8210c169d6.zip cgit-0c8e184e9cbf4d3a1e907de9125f6d8210c169d6.tar.gz | |
Change the cgit layout
This modifies and hopefully improves the layout of all cgit pages:
* Remove the header from all pages and replace it with a sidebar;
most pages have sufficient width but many needs more height.
* Add a dropdown-box to switch between branches, using a one-liner
javascript to reload the current page in context of the selected branch.
* Include refs found below refs/archives in the sidebar, appearing as a
set of menuitems below a 'download' heading.
* Include the brand new cgit logo
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
| -rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -181,6 +181,8 @@ extern int chk_non_negative(int result, char *msg); | |||
| 181 | 181 | ||
| 182 | extern int hextoint(char c); | 182 | extern int hextoint(char c); |
| 183 | extern char *trim_end(const char *str, char c); | 183 | extern char *trim_end(const char *str, char c); |
| 184 | extern char *strlpart(char *txt, int maxlen); | ||
| 185 | extern char *strrpart(char *txt, int maxlen); | ||
| 184 | 186 | ||
| 185 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); | 187 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); |
| 186 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, | 188 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
