From d9365f952bf28135dcafc357efae631af379bce0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 20 Oct 2014 12:59:06 +0000 Subject: [PATCH] - fix html typo; add links to rpm changelogs --- index.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index a3bc662..f3501e4 100644 --- a/index.php +++ b/index.php @@ -110,6 +110,9 @@ TH { font-family: arial,helvetica,sans-serif; color: #111; background-color: #161; } +.changelog a { + color: #fff; +} //--> @@ -293,7 +296,7 @@ function dump_log($tail) echo "

$df

"; - echo ""; + echo "
"; function one_item($h, $t) { echo "". @@ -382,6 +385,15 @@ function dump_log($tail) $toc_elem = "make {$m['target']}"; $err_elem = $s; $s = "$s"; + } elseif (preg_match('/^(?P- For complete changelog see:) (?P.+)$/', $s, $m)) { + // rpm changelog link + $link = "{$m['link']}"; + $s = "{$m['line']} $link
"; + } elseif (preg_match('/^(?P\* \w{3} \w{3} [ \d]{2} \d{4} .*?) (?P[a-z0-9]{7})$/', $s, $m)) { + // rpm changelogs + $url = "http://git.pld-linux.org/?p=packages/{$name_url}.git;a=commitdiff;h={$m['hash']}"; + $link = "{$m['hash']}"; + $s = "{$m['line']} $link
"; } elseif (substr($s, 0, 2) == "+ ") { // shell verbose $s = "$s"; @@ -530,7 +542,7 @@ function list_archs() "alt=\""._("Powered by PLD Linux")."\" border=\"0\" />
\n" . "(c) 2002-". date("Y") . " ". "PLD Team
\n". - '$Revision: 1.35 $'. + '$Revision: 1.36 $'. "
\n"; # smile ;) @@ -904,7 +916,7 @@ function welcome() . ;)

-

Version: $Id: index.php,v 1.35 2014/10/18 10:25:20 arekm Exp $

+

Version: $Id: index.php,v 1.36 2014/10/18 10:30:03 arekm Exp $

$h: