Skip to content

Commit bf5b8be

Browse files
committed
Make the layout copy what we have for normal releases
1 parent c0800c1 commit bf5b8be

File tree

2 files changed

+56
-64
lines changed

2 files changed

+56
-64
lines changed

get-involved.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<h3 class="content-title" id="ways-to-contribute">Four Best Ways to Contribute</h3>
2727

2828
<ol class="content-box listed">
29-
<li>Running test suites in <a href="https://qa.php.net/">RC</a>
29+
<li>Running test suites in <a href="/release-candidates.php">RC</a>
3030
and <a href="https://php.net/releases">release</a> distributions of PHP</li>
3131
<li>Help finding and diagnosing failed tests, see
3232
the <a href="https://qa.php.net/write-test.php">phpt documentation</a></li>

release-candidates.php

Lines changed: 55 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -5,79 +5,71 @@
55

66
$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
77

8+
$SIDEBAR_DATA = '
9+
<div class="panel">
10+
Test Releases
11+
<div class="body">
12+
The downloads on this page are not meant to be run in production. They are
13+
for testing only.
14+
</div>
15+
<div class="body">
16+
If you find a problem when running your library or application with these
17+
builds, please file a report on <a
18+
href="https://github.com/php/php-src/issues/">GitHub Issues</a>.
19+
</div>
20+
</div>
21+
';
22+
823
site_header("Release Candidates", [
9-
'current' => 'downloads',
24+
'current' => 'downloads',
1025
]);
1126

1227
?>
1328
<h1>Release Candidate Builds</h1>
1429
<p>
15-
This page contains links to the Release Candidate builds that the release
16-
managers create before each actual release. These builds are meant for the
17-
community to test whether no inadvertent changes have been made, and
18-
whether no regressions have been introduced.
30+
This page contains links to the Release Candidate builds that the release
31+
managers create before each actual release. These builds are meant for the
32+
community to test whether no inadvertent changes have been made, and
33+
whether no regressions have been introduced.
1934
</p>
2035

2136
<h3>Available QA Releases:</h3>
22-
<?php show_release_qa($QA_RELEASES); ?>
37+
<?php if (!empty($QA_RELEASES['releases'])) : ?>
38+
<?php $plural = count($QA_RELEASES['releases']) > 1 ? 's' : ''; ?>
39+
40+
<?php foreach ($QA_RELEASES['releases'] as $pversion => $info) : ?>
41+
<h3 class="title">
42+
PHP <?php echo $info['version']; ?>
43+
</h3>
44+
<div class="content-box">
45+
46+
<ul>
47+
<?php foreach ($info['files'] as $file_type => $file_info) : ?>
48+
<li>
49+
<?php download_link($file_info['path'], "php-{$info['version']}.tar.{$file_type}"); ?>
50+
<span class="releasedate"><?php echo date('d M Y', strtotime($info['date'])); ?></span>
51+
<?php foreach ($QA_CHECKSUM_TYPES as $algo): ?>
52+
<span class="<?php echo $algo; ?>">
53+
<?php if (isset($file_info[$algo]) && strlen($file_info[$algo])) : ?>
54+
<?php echo $file_info[$algo]; ?>
55+
<?php else: ?>
56+
<em><small>No checksum value available</small></em>)&nbsp;
57+
<?php endif; ?>
58+
<?php endforeach; ?>
59+
</li>
60+
<?php endforeach; ?>
61+
</ul>
62+
<?php endforeach; ?>
63+
<?php else: ?>
64+
<span class='lihack'>There are no QA releases available at the moment to test.</span>
65+
<?php endif; ?>
66+
2367
<p>
24-
<br>
25-
<strong>Windows users:</strong>
26-
See <a href="https://windows.php.net/qa/">here</a> for the Windows QA builds.
68+
<br/>
69+
<strong>Windows users:</strong>
70+
See <a href="https://windows.php.net/qa/">here</a> for the Windows QA builds.
2771
</p>
28-
<?php
29-
30-
site_footer();
31-
32-
function show_release_qa($QA_RELEASES) {
33-
// The checksum configuration array
34-
global $QA_CHECKSUM_TYPES;
35-
36-
echo "<!-- RELEASE QA -->\n";
37-
38-
if (!empty($QA_RELEASES['releases'])) {
39-
40-
$plural = count($QA_RELEASES['releases']) > 1 ? 's' : '';
41-
42-
// QA Releases
43-
echo "<span class='lihack'>\n";
44-
echo "Providing QA for the following <a href='/rc.php'>test release{$plural}</a>:<br> <br>\n";
45-
echo "</span>\n";
46-
echo "<table>\n";
4772

48-
foreach ($QA_RELEASES['releases'] as $pversion => $info) {
49-
50-
echo "<tr>\n";
51-
echo "<td colspan=\"" . (sizeof($QA_CHECKSUM_TYPES) + 1) . "\">\n";
52-
echo "<h3 style=\"margin: 0px;\">{$info['version']}</h3>\n";
53-
echo "</td>\n";
54-
echo "</tr>\n";
55-
56-
foreach ($info['files'] as $file_type => $file_info) {
57-
echo "<tr>\n";
58-
echo "<td width=\"20%\"><a href=\"{$file_info['path']}\">php-{$info['version']}.tar.{$file_type}</a></td>\n";
59-
60-
foreach ($QA_CHECKSUM_TYPES as $algo) {
61-
echo '<td>';
62-
echo '<strong>' . strtoupper($algo) . ':</strong> ';
63-
64-
if (isset($file_info[$algo]) && strlen($file_info[$algo])) {
65-
echo $file_info[$algo];
66-
} else {
67-
echo '(<em><small>No checksum value available</small></em>)&nbsp;';
68-
}
69-
70-
echo "</td>\n";
71-
}
72-
73-
echo "</tr>\n";
74-
}
75-
}
76-
77-
echo "</table>\n";
78-
} else {
79-
echo "<span class='lihack'>There are no QA releases available at the moment to test.</span>";
80-
}
73+
<?php
74+
site_footer(['sidebar' => $SIDEBAR_DATA]);
8175

82-
echo "<!-- END -->\n";
83-
}

0 commit comments

Comments
 (0)