<%@ page import="com.atlassian.jira.util.EasyList,
                 com.atlassian.jira.web.action.util.JiraLicenseUtils,
                 com.atlassian.license.License,
                 com.atlassian.license.LicenseManager"%>
<%@ taglib uri="webwork" prefix="webwork" %>
<webwork:bean id="math" name="'com.atlassian.core.bean.MathBean'"/>
<webwork:if test="browseableProjects/size > 0 || remoteUser != null">
<table bgcolor="bbbbbb" border="0" cellpadding="0" cellspacing="0" class="maxWidth"><tr><td>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
    <webwork:if test="browseableProjects/size > 0">
    <tr bgcolor="f0f0f0">
        <td class="colHeaderLink" colspan="<webwork:property value="property('numofcolumns')"/>">
            <webwork:if test="enterprise == true">
                <webwork:if test="string('name')">
                    <webwork:text name="'common.concepts.category'" />: <b><webwork:property value="string('name')" /></b>
                </webwork:if>
                <webwork:elseIf test="../property('projectcategoryid') == ''">
                    <webwork:text name="'portlet.projects.display.name.all'"/>
                </webwork:elseIf>
                <webwork:else>
                    <webwork:text name="'portlet.projecttable.with.no.category'"/>
                </webwork:else>
            </webwork:if>
            <webwork:else>
                <webwork:text name="'portlet.projects.display.name.all'"/>
            </webwork:else>
        </td>
    </tr>
        <tr bgcolor="ffffff">
        <webwork:iterator value="." status="'status'">
            <webwork:property value="../property('numofcolumns')">
                <td width="<webwork:property value="@math/percentageWidth(.,@status/modulus(.))"/>%">
                    <b><a href="<%= request.getContextPath() %>/browse/<webwork:property value="string('key')"/>"><webwork:property value="string('name')" /></a></b>
                    <font size=1>(<webwork:property value="string('key')" />)</font>
                </td>
            <webwork:if test="@status/last == true">
                <webwork:if test="@status/modulus(.) == 0">
                </tr>
                </webwork:if>
                <webwork:else>
                <webwork:bean name="'webwork.util.Counter'">
                    <webwork:param name="'last'" value="../property('numofcolumns')"/>
                    <webwork:subset start="@status/modulus(last)">
                        <webwork:iterator>
                            <td width="<webwork:property value="@math/percentageWidth(last,.)"/>%">&nbsp;</td>
                        </webwork:iterator>
                    </webwork:subset>
                </webwork:bean>
                </webwork:else>
                </tr>
            </webwork:if>
            <webwork:else>
                <webwork:if test="@status/modulus(.) == 0">
                </tr>
                <tr bgcolor="ffffff">
                </webwork:if>
            </webwork:else>
            </webwork:property>
        </webwork:iterator>
    </webwork:if>
    <webwork:elseIf test="remoteUser != null">
        <tr bgcolor="f0f0f0">
            <td class="colHeaderLink" colspan="2"><webwork:text name="'portlet.projecttable.allprojects'" />:</td>
        </tr>
        <%@ include file="/includes/noprojects.jsp" %>
    </webwork:elseIf>
</table>
</td></tr>
</table>
</webwork:if>
