From: Junio C Hamano <gitster@pobox.com>
To: git@vger.kernel.org
Cc: Jakub Narebski <jnareb@gmail.com>
Subject: [PATCH] Advertise per branch RSS/Atom feeds
Date: Sat, 11 Aug 2007 02:41:41 -0700 [thread overview]
Message-ID: <7vps1ummqy.fsf@assigned-by-dhcp.cox.net> (raw)
The feeder code had provisions to accept 'h' parameter to
specify which branch to send the feed data from, but there was
no link that advertised this capability on the pages.
This adds h parameter to the footer of shortlog/log page for the
branch.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
gitweb/gitweb.perl | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index f282a67..6c1da14 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2378,12 +2378,16 @@ sub git_footer_html {
print "<div class=\"page_footer\">\n";
if (defined $project) {
my $descr = git_get_project_description($project);
+ my @tips = ();
+ if ($hash !~ /^[0-9a-fA-F]{40}$/) {
+ @tips = (hash => $hash);
+ }
if (defined $descr) {
print "<div class=\"page_footer_text\">" . esc_html($descr) . "</div>\n";
}
- print $cgi->a({-href => href(action=>"rss"),
+ print $cgi->a({-href => href(action=>"rss", @tips),
-class => "rss_logo"}, "RSS") . " ";
- print $cgi->a({-href => href(action=>"atom"),
+ print $cgi->a({-href => href(action=>"atom", @tips),
-class => "rss_logo"}, "Atom") . "\n";
} else {
print $cgi->a({-href => href(project=>undef, action=>"opml"),
next reply other threads:[~2007-08-11 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-11 9:41 Junio C Hamano [this message]
2007-08-11 19:57 ` [PATCH] Advertise per branch RSS/Atom feeds Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vps1ummqy.fsf@assigned-by-dhcp.cox.net \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).