* @license MIT License, see LICENSE.txt * @link http://svnweb.mageia.org/svn/soft/dashboard/ */ /** */ class Report_HTML { /** * */ function render($r) { $ret = ''; foreach ($r as $r1) { $lis = ''; foreach ($r1['values'] as $v) $lis .= sprintf('
  • %s
  • ', $v['c'], $v['t']); if ($r1['status'] >= 1) $status = 'OK'; elseif ($r1['status'] > 0.7) $status = 'GOOD'; elseif ($r1['status'] < 0.5) $status = 'NOT READY'; $links = $r1['links']; $ret .= <<

    {$r1['title']}

    Status: {$status}

    {$links}

    S; $pubDate = date('r'); } $s = << Mageia buildsystem status overview

    Mageia build chain dashboard


    Last updated: {$pubDate}


    • Light gray values are unchecked for now; coming soon!
    • ISO Build block is still a mockup, doesn't work for now!
    • code is in svnweb.mageia.org/soft/dashboard; to get a copy of the code:
      $ svn checkout svn://svn.mageia.org/svn/soft/dashboard
      patches or an even better dashboard option are welcome!
    S; return $s; } }