git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Richter <robert.richter@amd.com>
To: "J.H." <warthog19@eaglescrag.net>
Cc: Junio C Hamano <gitster@pobox.com>,
	git@vger.kernel.org, Robert Richter <robert.richter@amd.com>
Subject: [PATCH] Gitweb: Provide Git links in project list
Date: Mon, 4 Aug 2008 12:06:50 +0200	[thread overview]
Message-ID: <1217844410-24079-1-git-send-email-robert.richter@amd.com> (raw)
In-Reply-To: <1217796793.32240.36.camel@localhost.localdomain>

Signed-off-by: Robert Richter <robert.richter@amd.com>
---
 gitweb/gitweb.perl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 90cd99b..6d9b7aa 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3558,6 +3558,9 @@ sub fill_project_list_info {
 		if (!defined $pr->{'owner'}) {
 			$pr->{'owner'} = git_get_project_owner("$pr->{'path'}") || "";
 		}
+		if (!defined $pr->{'url_link'}) {
+			$pr->{'url_link'} = (git_get_project_url_list("$pr->{'path'}"))[0] || "";
+		}
 		if ($check_forks) {
 			my $pname = $pr->{'path'};
 			if (($pname =~ s/\.git$//) &&
@@ -3661,6 +3664,7 @@ sub git_project_list_body {
 		      $cgi->a({-href => href(project=>$pr->{'path'}, action=>"shortlog")}, "shortlog") . " | " .
 		      $cgi->a({-href => href(project=>$pr->{'path'}, action=>"log")}, "log") . " | " .
 		      $cgi->a({-href => href(project=>$pr->{'path'}, action=>"tree")}, "tree") .
+		      ($pr->{'url_link'} ? " | " . $cgi->a({-href => $pr->{'url_link'}}, "git") : '') .
 		      ($pr->{'forks'} ? " | " . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"forks")}, "forks") : '') .
 		      "</td>\n" .
 		      "</tr>\n";
-- 
1.5.5.4

  reply	other threads:[~2008-08-04 10:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 12:57 Gitweb: Provide Git links in project list? Robert Richter
2008-07-30 13:02 ` Fredrik Skolmli
2008-07-30 13:13   ` Robert Richter
2008-07-30 13:29     ` Fredrik Skolmli
2008-07-30 14:55     ` Bert Wesarg
2008-07-30 15:27       ` Robert Richter
2008-07-30 15:49 ` J.H.
2008-07-30 16:11   ` Robert Richter
2008-08-03 20:53     ` J.H.
2008-08-04 10:06       ` Robert Richter [this message]
2008-08-04 10:12       ` Robert Richter
2008-08-04 16:26         ` J.H.
2008-08-04 20:10           ` Petr Baudis
2008-07-30 16:41   ` Boyd Lynn Gerber

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=1217844410-24079-1-git-send-email-robert.richter@amd.com \
    --to=robert.richter@amd.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=warthog19@eaglescrag.net \
    /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).