diff options
| author | Jason A. Donenfeld | 2013-03-03 23:21:33 -0500 |
|---|---|---|
| committer | Jason A. Donenfeld | 2013-03-04 09:12:54 -0500 |
| commit | bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e (patch) | |
| tree | 683306f79bd96a45566879acd21e5ff085120acd /ui-repolist.c | |
| parent | 53bc747d311d18642fa3ad0cc0de34f3899ed1f4 (diff) | |
| download | cgit-bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e.tar.gz cgit-bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e.tar.bz2 cgit-bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e.zip | |
White space around control verbs.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-repolist.c')
| -rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 449478d..1ae22aa 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
| @@ -129,7 +129,7 @@ void print_pager(int items, int pagelen, char *search, char *sort) | |||
| 129 | int i, ofs; | 129 | int i, ofs; |
| 130 | char *class = NULL; | 130 | char *class = NULL; |
| 131 | html("<div class='pager'>"); | 131 | html("<div class='pager'>"); |
| 132 | for(i = 0, ofs = 0; ofs < items; i++, ofs = i * pagelen) { | 132 | for (i = 0, ofs = 0; ofs < items; i++, ofs = i * pagelen) { |
| 133 | class = (ctx.qry.ofs == ofs) ? "current" : NULL; | 133 | class = (ctx.qry.ofs == ofs) ? "current" : NULL; |
| 134 | cgit_index_link(fmt("[%d]", i + 1), fmt("Page %d", i + 1), | 134 | cgit_index_link(fmt("[%d]", i + 1), fmt("Page %d", i + 1), |
| 135 | class, search, sort, ofs); | 135 | class, search, sort, ofs); |
| @@ -258,7 +258,7 @@ void cgit_print_repolist() | |||
| 258 | if (ctx.cfg.index_header) | 258 | if (ctx.cfg.index_header) |
| 259 | html_include(ctx.cfg.index_header); | 259 | html_include(ctx.cfg.index_header); |
| 260 | 260 | ||
| 261 | if(ctx.qry.sort) | 261 | if (ctx.qry.sort) |
| 262 | sorted = sort_repolist(ctx.qry.sort); | 262 | sorted = sort_repolist(ctx.qry.sort); |
| 263 | else if (ctx.cfg.section_sort) | 263 | else if (ctx.cfg.section_sort) |
| 264 | sort_repolist("section"); | 264 | sort_repolist("section"); |
