</tr>
	</thead>
	<tbody>
		<?php 
foreach (get_active_branches(false) as $major => $releases) {
    ?>
			<?php 
    ksort($releases);
    ?>
			<?php 
    foreach ($releases as $branch => $release) {
        ?>
				<?php 
        $state = get_branch_support_state($branch);
        $initial = get_branch_release_date($branch);
        $until = get_branch_bug_eol_date($branch);
        $eol = get_branch_security_eol_date($branch);
        ?>
				<tr class="<?php 
        echo $state;
        ?>
">
					<td>
						<a href="/downloads.php#v<?php 
        echo htmlspecialchars($release['version']);
        ?>
"><?php 
        echo htmlspecialchars($branch);
        ?>
</a>
						<?php 
    ?>
				</text>
			</g>
		<?php 
}
?>
	</g>

	<!-- Branch blocks -->
	<g class="branches">
		<?php 
foreach ($branches as $branch => $version) {
    ?>
			<?php 
    $x_release = date_horiz_coord(get_branch_release_date($branch));
    $x_bug = date_horiz_coord(get_branch_bug_eol_date($branch));
    $x_eol = date_horiz_coord(get_branch_security_eol_date($branch));
    ?>
			<rect class="stable" x="<?php 
    echo $x_release;
    ?>
" y="<?php 
    echo $version['top'];
    ?>
" width="<?php 
    echo $x_bug - $x_release;
    ?>
" height="<?php 
    echo $branch_height;
    ?>
" />