]> git.pld-linux.org Git - projects/buildlogs.git/commitdiff
link to gitweb if build is a package
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 8 Jun 2015 18:22:06 +0000 (21:22 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 8 Jun 2015 18:22:06 +0000 (21:22 +0300)
index.php

index 3397013f39190dc9411ca2383f490788ef00f94c..30eb8ac57050ba4e28aedc6507a473c0e23a6da0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -293,8 +293,13 @@ function dump_log($tail)
 
        $df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
        $df = preg_replace("/\.(bz2|gz)$/", "", $df);
+       list($name, $id) = explode(',', $df);
 
-       echo "<h1>$df</h1>";
+       if ($name != 'command') {
+               $gitweb_url = "http://git.pld-linux.org/?p=packages/$name.git;a=summary";
+               $name = "<a href=\"$gitweb_url\">$name</a>";
+       }
+       echo "<h1>$name <small>$id</small></h1>";
 
        echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\" width=\"100%\">";
 
This page took 0.115342 seconds and 4 git commands to generate.