Skip to content

Commit

Permalink
gitweb: limit links to alternate forms of project_list to active proj…
Browse files Browse the repository at this point in the history
…ect_filter

If project_list action is given a project_filter argument, pass that to
TXT and OPML formats.

This way [OPML] and [TXT] links provide the same list of projects as
the projects_list page they are linked from.

Signed-off-by: Bernhard R. Link <brlink@debian.org>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Bernhard R. Link authored and Junio C Hamano committed Feb 1, 2012
1 parent 19d2d23 commit 56efd9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -3979,9 +3979,11 @@ sub git_footer_html {
}

} else {
print $cgi->a({-href => href(project=>undef, action=>"opml"),
print $cgi->a({-href => href(project=>undef, action=>"opml",
project_filter => $project_filter),
-class => $feed_class}, "OPML") . " ";
print $cgi->a({-href => href(project=>undef, action=>"project_index"),
print $cgi->a({-href => href(project=>undef, action=>"project_index",
project_filter => $project_filter),
-class => $feed_class}, "TXT") . "\n";
}
print "</div>\n"; # class="page_footer"
Expand Down

0 comments on commit 56efd9d

Please sign in to comment.