[PATCHv5 10/12] gitweb: git_repo_url() routine
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Sep 24, 2010, 16:02 UTC
- Message-ID
- <1285344167-8518-11-git-send-email-giuseppe.bilotta@gmail.com>
- In-Reply-To
- <1285344167-8518-1-git-send-email-giuseppe.bilotta@gmail.com>
The routine creates a table row with a name and a repository address, like the one used at the top of summary view.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> --- gitweb/gitweb.perl | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8f11fb5..2ab9327 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3802,6 +3802,11 @@ sub git_group { print $cgi->end_div; } +sub git_repo_url { + my ($name, $url) = @_; + return "<tr class=\"metadata_url\"><td>$name</td><td>$url</td></tr>\n"; +} + sub print_local_time { print format_local_time(@_); }
-- 1.7.3.68.g6ec8