diff options
author | Tobias Bieniek | 2012-10-09 20:53:29 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2012-10-17 16:30:22 +0200 |
commit | 7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb (patch) | |
tree | b6c00afc3ce98770e645f01cfc0a0ee8384fe0ec /ui-repolist.c | |
parent | 521e10c884055c800078e6dada97ccf6c5193aad (diff) | |
download | cgit-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.c | 2 |
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'>"); |