aboutsummaryrefslogtreecommitdiffstats
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorTobias Bieniek2012-10-09 20:53:29 +0200
committerJason A. Donenfeld2012-10-17 16:30:22 +0200
commit7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb (patch)
treeb6c00afc3ce98770e645f01cfc0a0ee8384fe0ec /ui-repolist.c
parent521e10c884055c800078e6dada97ccf6c5193aad (diff)
downloadcgit-7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb.tar.gz
cgit-7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb.tar.bz2
cgit-7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb.zip
ui-repolist: Add "section-sort" flag to control section sorting.
Flag which, when set to "1", will sort the sections on the repository listing by name. Set this flag to "0" if the order in the cgitrc file should be preserved. Default value: "1". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.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 36c067a..dead1bf 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -257,7 +257,7 @@ void cgit_print_repolist()
257 257
258 if(ctx.qry.sort) 258 if(ctx.qry.sort)
259 sorted = sort_repolist(ctx.qry.sort); 259 sorted = sort_repolist(ctx.qry.sort);
260 else 260 else if (ctx.cfg.section_sort)
261 sort_repolist("section"); 261 sort_repolist("section");
262 262
263 html("<table summary='repository list' class='list nowrap'>"); 263 html("<table summary='repository list' class='list nowrap'>");