#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.changelog")</h3>

    <ul class="square">
    <li><strong>$action.getText("browseproject.scope"):</strong>
    #if ($action.subset.intValue() != -1)
        $action.getText("changelog.previousthreeversions") | <a href="$req.contextPath/secure/BrowseProject.jspa?id=$project.getLong('id')&subset=-1">$action.getText("changelog.allversions")</a>
    #else
        <a href="$req.contextPath/secure/BrowseProject.jspa?id=$project.getLong('id')&subset=3">$action.getText("changelog.previousthreeversions")</a> | $action.getText("changelog.allversions")
    #end
    </li>
    </ul>
</div>
    <table cellpadding=3 cellspacing=0 border=0 width=100% bgcolor="fffff0">
    #foreach ($version in $action.versionManager.getVersionsReleasedDesc($project, false))
        #if ($velocityCount <= $action.subset.intValue() || $action.subset.intValue() == -1)
            <tr>
                <td rowspan=2 class="colHeaderLink" width=3%>
                    #versionStatus($version 24)
                </td>
                <td class="colHeaderLink" colspan=6>
                    <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>
                    (<font size="1">#if ($version.releaseDate)
                        #versionReleaseDate($action $version) |
                    #end
                    <a href="$req.contextPath/secure/ReleaseNote.jspa?projectId=$project.getLong('id')&styleName=Html&version=$version.id">$action.getText("common.concepts.releasenotes")</a></font>)
                </td>
            </tr>
            <tr>
                <td colspan=6>
                    <span class="subText">$textutils.htmlEncode($!version.description)</span>
                </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