<th colspan="2">Active Support Until</th>
			<th colspan="2">Security Support Until</th>
		</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);
        ?>
				stroke: black;
			}

			.years text {
				text-anchor: middle;
			}
		]]>
	</style>

	<!-- Branch labels -->
	<g class="branch-labels">
		<?php 
foreach ($branches as $branch => $version) {
    ?>
			<g class="<?php 
    echo get_branch_support_state($branch);
    ?>
">
				<rect x="0" y="<?php 
    echo $version['top'];
    ?>
" width="<?php 
    echo 0.5 * $margin_left;
    ?>
" height="<?php 
    echo $branch_height;
    ?>
" />
				<text x="<?php 
    echo 0.25 * $margin_left;
    ?>