summaryrefslogtreecommitdiffstats
path: root/test_index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-10 14:59:22 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-10 14:59:22 +0000
commit0adad283500d22dcd2ce5c32d969dbcbb699e7f5 (patch)
tree839d870f99fe3907b212653480e3412e4f7e960f /test_index.php
parent2d89444a328761b72d896873e49ef551c3b16452 (diff)
downloadpkgsubmit-0adad283500d22dcd2ce5c32d969dbcbb699e7f5.tar
pkgsubmit-0adad283500d22dcd2ce5c32d969dbcbb699e7f5.tar.gz
pkgsubmit-0adad283500d22dcd2ce5c32d969dbcbb699e7f5.tar.bz2
pkgsubmit-0adad283500d22dcd2ce5c32d969dbcbb699e7f5.tar.xz
pkgsubmit-0adad283500d22dcd2ce5c32d969dbcbb699e7f5.zip
reformat figures display on top
Diffstat (limited to 'test_index.php')
-rw-r--r--test_index.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/test_index.php b/test_index.php
index e8fb722..e83ddce 100644
--- a/test_index.php
+++ b/test_index.php
@@ -96,7 +96,7 @@ if (!is_null($g_user) || isset($_GET['package'])) {
echo '<a href="/">&laquo;&nbsp;Back to full list</a>';
}
-echo '<ul>';
+echo '<ul class="figures">';
$figures_list = array();
if (!isset($_GET['package'])) {
@@ -124,20 +124,21 @@ if (!isset($_GET['package'])) {
}
if (count($figures_list) > 0)
- $figures_list[count($figures_list)-1] .= sprintf(' &raquo; <a href="%s" class="action-btn">%s</a>',
+ $figures_list[count($figures_list)-1] .= sprintf(' <a href="%s" class="action-btn" title="%s">%s</a>',
'https://wiki.mageia.org/en/Importing_packages',
- 'you can help!');
+ 'YES you can!', 'you can help!');
}
preg_match_all('/<span class="bz_result_count">(\d+)/', file_get_contents("https://bugs.mageia.org/buglist.cgi?quicksearch=%40qa-bugs+-kw%3Avali"), $matches);
$qa_bugs = $matches[1][0];
if ($qa_bugs > 0) {
- $figures_list[] = sprintf('<span class="figure">%d</span> <a rel="nofollow" href="%s">package update%s to validate</a> &raquo; <a href="%s" class="action-btn">%s</a>',
+ $figures_list[] = sprintf('<span class="figure">%d</span> <a rel="nofollow" href="%s">package update%s to validate</a>
+ <a href="%s" class="action-btn" title="%s">%s</a>',
$qa_bugs,
'https://bugs.mageia.org/buglist.cgi?quicksearch=%40qa-bugs+-kw%3Avali',
plural($qa_bugs),
'https://wiki.mageia.org/en/QA_process_for_validating_updates',
- 'you can help!'
+ 'YES you can!', 'you can help!'
);
}
@@ -145,6 +146,7 @@ if (!isset($_GET['package'])) {
echo array_reduce($figures_list, function ($res, $e) { return $res . '<li><p>' . $e . '</p></li>'; }, '');
}
+ echo '</ul><ul>';
$buildtime_stats = array();
// Builds in progress