<%@ page import="com.atlassian.jira.util.EasyList,
                 com.atlassian.jira.web.action.util.JiraLicenseUtils"%>
<% if (license !=null && license.isLicenseLevel(EasyList.build(JiraLicenseUtils.JIRA_PROFESSIONAL_LEVEL, JiraLicenseUtils.JIRA_ENTERPRISE_LEVEL))) { %>
    <webwork:if test="subscriptions(.) && subscriptions(.)/empty == false">
        <webwork:property value="subscriptions(.)/size"/> <webwork:text name="'managefilters.subscriptions'"/> - <a href="<webwork:url value="'ViewSubscriptions.jspa'"><webwork:param name="'filterId'" value="long('id')" /></webwork:url>"><webwork:text name="'managefilters.view'"/></a>
    </webwork:if>
    <webwork:else>
        <webwork:text name="'common.words.none'"/> - <a href="<webwork:url value="'FilterSubscription!default.jspa'"><webwork:param name="'filterId'" value="long('id')" /></webwork:url>"><webwork:text name="'managefilters.subscribe'"/></a>
    </webwork:else>
<% } else { %>
   <webwork:if test="subscriptions(.) && subscriptions(.)/empty == false">
        <img src="<%= request.getContextPath() %>/images/icons/subscribed_16.gif" height=16 width=16 border=0 align=absmiddle title="<webwork:text name="'subscriptions.subscribed'"/>">
        <webwork:text name="'managefilters.email.interval'"/>
        <webwork:iterator value="subscriptions(.)">
            <webwork:property value="stringFromSecs(.)" />
        </webwork:iterator>
   </webwork:if>
   <webwork:else>
        <img src="<%= request.getContextPath() %>/images/icons/unsubscribed_16.gif" height=16 width=16 border=0 align=absmiddle title="<webwork:text name="'subscriptions.not.subscribed'"/>">
            <span class="grey"><webwork:text name="'subscriptions.not.subscribed'"/></span>
   </webwork:else>
<% } %>