From: Jakub Narebski Date: Fri, 15 Sep 2006 09:11:33 +0000 (+0200) Subject: gitweb: Add link to "project_index" view to "project_list" page X-Git-Tag: v1.4.3-rc1~98 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d0734ae49c8c0a5a2c6b6bf85011d095182e357;p=git.git gitweb: Add link to "project_index" view to "project_list" page Add link to "project_index" view as [TXT] beside link to "opml" view, (which is marked by [OPML]) to "project_list" page. While at it add alternate links for "opml" and "project_list" to HTML header for "project_list" view. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index f75fea562..a81c8d4cf 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1255,6 +1255,13 @@ EOF printf(''."\n", esc_param($project), href(action=>"rss")); + } else { + printf(''."\n", + $site_name, href(project=>undef, action=>"project_index")); + printf(''."\n", + $site_name, href(project=>undef, action=>"opml")); } if (defined $favicon) { print qq(\n); @@ -1309,7 +1316,9 @@ sub git_footer_html { -class => "rss_logo"}, "RSS") . "\n"; } else { print $cgi->a({-href => href(project=>undef, action=>"opml"), - -class => "rss_logo"}, "OPML") . "\n"; + -class => "rss_logo"}, "OPML") . " "; + print $cgi->a({-href => href(project=>undef, action=>"project_index"), + -class => "rss_logo"}, "TXT") . "\n"; } print "\n" . "\n" .