aboutsummaryrefslogtreecommitdiffstats
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2007-05-16 17:45:45 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2007-05-16 17:46:59 (JST)
commitc1ad6cb77889880ad0189a689840fbfa6e5cbc80 (patch)
tree352c32898316a388b582385a5fb3c6c534eaa30a /ui-repolist.c
parentf4f1339fe62fb1a28c147567195a86dd99485e25 (diff)
downloadcgit-c1ad6cb77889880ad0189a689840fbfa6e5cbc80.zip
cgit-c1ad6cb77889880ad0189a689840fbfa6e5cbc80.tar.gz
Restrict length of repo description on repolist page
If any repo has a very long description, all repos suffer since the repo-links in the right-most column gets pushed out of sight. Fix it by introducing max-repodesc-length parameter in cgitrc, and default to 60 chars. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index d341193..d7311e4 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -30,7 +30,7 @@ void cgit_print_repolist(struct cacheitem *item)
30 html_txt(repo->name); 30 html_txt(repo->name);
31 html_link_close(); 31 html_link_close();
32 html("</td><td>"); 32 html("</td><td>");
33 html_txt(repo->desc); 33 html_ntxt(cgit_max_repodesc_len, repo->desc);
34 html("</td><td>"); 34 html("</td><td>");
35 html_txt(repo->owner); 35 html_txt(repo->owner);
36 html("</td><td>"); 36 html("</td><td>");