@matheusbsbs / matheus-bagliano / commits / 10161355ba
Fork 0

gitweb: Inline $rss_link

Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Aug 5, 2006 at 13:18 UTC 10161355ba3b121c823649ef1acca526d73363f6
1 file changed +6 -7
gitweb/gitweb.perl
+6 -7
@@ -21,7 +21,6 @@ our $cgi = new CGI;
21 our $version = "++GIT_VERSION++";
22 our $my_url = $cgi->url();
23 our $my_uri = $cgi->url(-absolute => 1);
24 -our $rss_link = "";
24
25 # core git executable to use
26 # this can just be "git" if your webserver has a sensible PATH
@@ -97,8 +96,6 @@ if (defined $project && $project) {
96 if (!(-e "$projectroot/$project/HEAD")) {
97 die_error(undef, "No such project");
98 }
100 - $rss_link = "<link rel=\"alternate\" title=\"" . esc_param($project) . " log\" href=\"" .
101 - "$my_uri?" . esc_param("p=$project;a=rss") . "\" type=\"application/rss+xml\"/>";
99 $ENV{'GIT_DIR'} = "$projectroot/$project";
100 } else {
101 git_project_list();
@@ -862,11 +859,13 @@ sub git_header_html {
859 <meta name="robots" content="index, nofollow"/>
860 <title>$title</title>
861 <link rel="stylesheet" type="text/css" href="$stylesheet"/>
865 -$rss_link
866 -</head>
867 -<body>
862 EOF
869 - print "<div class=\"page_header\">\n" .
863 + print "<link rel=\"alternate\" title=\"" . esc_param($project) . " log\" href=\"" .
864 + "$my_uri?" . esc_param("p=$project;a=rss") . "\" type=\"application/rss+xml\"/>\n" .
865 + "</head>\n";
866 +
867 + print "<body>\n" .
868 + "<div class=\"page_header\">\n" .
869 "<a href=\"http://www.kernel.org/pub/software/scm/git/docs/\" title=\"git documentation\">" .
870 "<img src=\"$logo\" width=\"72\" height=\"27\" alt=\"git\" style=\"float:right; border-width:0px;\"/>" .
871 "</a>\n";