Skip to content

Commit f04f27e

Browse files
MikeRalphsonspearce
authored andcommitted
gitweb: Sort the list of forks on the summary page by age
The list of forks on the summary page was unsorted, this just makes them sorted by age, which seems a fair way to decide which forks are shown before the list size cut-off (15) kicks in. s/noheader/no_header was just to make it obvious what the parameter affects, so all the code can be found with one grep. pb: As suggested by Mike, I have augmented this by an additional patch that refactors the sorting logic so that it is not tied to printing the headers. Signed-off-by: Mike Ralphson <[email protected]> Signed-off-by: Petr Baudis <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 6b28da6 commit f04f27e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4119,10 +4119,10 @@ sub git_summary {
41194119

41204120
if (@forklist) {
41214121
git_print_header_div('forks');
4122-
git_project_list_body(\@forklist, undef, 0, 15,
4122+
git_project_list_body(\@forklist, 'age', 0, 15,
41234123
$#forklist <= 15 ? undef :
41244124
$cgi->a({-href => href(action=>"forks")}, "..."),
4125-
'noheader');
4125+
'no_header');
41264126
}
41274127

41284128
git_footer_html();

0 commit comments

Comments
 (0)