#set ($project = $action.project)
#if ($fieldVisibility.isFieldHiddenInAllSchemes($project.getLong("id"), "fixVersions", null) == false)
<div class="projectPanel">
<div class="header">
    <h3 class="formtitle">$action.getText("common.concepts.roadmap")</h3>
    <ul class="square">
        <li><a href="$req.contextPath/secure/BrowsePersonalProject.jspa?id=$project.getLong('id')&report=roadmap&subset=$action.subset">$action.getText("roadmap.viewpersonal")</a></li>

    <li><strong>$action.getText("browseproject.scope"):</strong>
    #if ($action.subset.intValue() != -1)
        $action.getText("roadmap.nextthreeversions") | <a href="$req.contextPath/secure/BrowseProject.jspa?id=$project.getLong('id')&subset=-1">$action.getText("roadmap.allversions")</a>
    #else
        <a href="$req.contextPath/secure/BrowseProject.jspa?id=$project.getLong('id')&subset=3">$action.getText("roadmap.nextthreeversions")</a> | $action.getText("roadmap.allversions")
    #end
    </li>
    </ul>
</div>

    <table cellpadding=3 cellspacing=0 border=0 width="100%" bgcolor="fffff0">
    #foreach ($version in $action.versionManager.getVersionsUnreleased($project, false))
        #if ($velocityCount <= $action.subset.intValue() || $action.subset.intValue() == -1)
            <tr>
                <td colspan=7>
                <table class="versionBanner">
                    <tr>
                        <td rowspan=2 class="colHeaderLink" align=left width=3%>
                            #versionStatus($version 24)
                        </td>
                        <td class="colHeaderLink" align="left">
                            <font size=3><a href="$req.contextPath/secure/IssueNavigator.jspa?reset=true&pid=$project.getLong('id')&fixfor=$version.id" title="$action.getText('browseproject.getmoreinfo')">
                            <b><u>$textutils.htmlEncode($version.name)</u></b></a></font>
                            <span class="noWrap">(#if ($version.releaseDate)
                                #versionReleaseDate($action $version) |
                            #end
                            <a class="subText" href="$req.contextPath/secure/ReleaseNote.jspa?projectId=$project.getLong('id')&styleName=Html&version=$version.id">$action.getText("common.concepts.releasenotes")</a> )</span>
                        </td>
                        <td rowspan=2 colspan=3 bgcolor="fffff0">
                    <table height=6 width=180 valign=middle align=right cellspacing=0 cellpadding=0 border=0>
                        <tr height=6>
                            <td width="80" valign="middle" align="right"><span class="subText">$action.getText("common.words.progress"):&nbsp;</span></td>
                            #set ($graphModel = $action.getIssueSummaryByFixForVersion($version))
                            #percentageGraph ($graphModel $project $version)
                        </tr>
                        #set ($issuesByFixVersionSize = $action.getIssuesByFixForVersion($version).size())
                        #if ($issuesByFixVersionSize > 0)
                            <tr><td colspan="3" align="right">
                                &nbsp;
                                <span class="subText">$action.getText("roadmap.issuesresolved", "$action.getResolvedGroupedByFixFor($version)", "$issuesByFixVersionSize")</span>
                            </td></tr>
                        #end
                    </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="subText">$textutils.htmlEncode($!version.description)</span>
                        </td>
                    </tr>
                </table>
                </td>
            </tr>

            #set ($issues = $action.getIssuesByFixForVersion($version))
            #if ($issues.size() > 0)
                #foreach ($issue in $issues)
                    <tr bgcolor=ffffff>
                        <td width=5% nowrap>&nbsp;&nbsp;</td>
                        #issueLineItem ($action $issue)
                    </tr>
                #end
            #else
                <tr>
                    <td bgcolor=ffffff>&nbsp;</td>
                    <td colspan=6 bgcolor=ffffff>
                        <font size=1>$action.getText("common.concepts.noissues").</font>
                    </td>
                </tr>
            #end
        #end
    #end
    </table>
</div>
#else
&nbsp;
#end