about summary refs log tree commit diff stats
path: root/html.c
diff options
context:
space:
mode:
authorLars Hjemli2007-05-11 12:12:48 +0200
committerLars Hjemli2007-05-11 12:12:48 +0200
commitded9393b173853d2e960f9b176aeb0bc4ed35be2 (patch)
tree5c062b21e85ef0fe243ad900e9f4ffaf2ded0f62 /html.c
parentAdd submodules.sh and use it during builds (diff)
downloadcgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.tar.gz
cgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.zip
Add submodule links in tree listing
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>
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c index c0b2ed4..175b4b6 100644 --- a/html.c +++ b/html.c
@@ -158,10 +158,11 @@ void html_filemode(unsigned short mode)
158 html("d"); 158 html("d");
159 else if (S_ISLNK(mode)) 159 else if (S_ISLNK(mode))
160 html("l"); 160 html("l");
161 else if (S_ISDIRLNK(mode))
162 html("m");
161 else 163 else
162 html("-"); 164 html("-");
163 html_fileperm(mode >> 6); 165 html_fileperm(mode >> 6);
164 html_fileperm(mode >> 3); 166 html_fileperm(mode >> 3);
165 html_fileperm(mode); 167 html_fileperm(mode);
166} 168}
167