<%@ include file="/common/taglibs.jsp" %>
<div id="iSavedFilterPanel">
    <div class="PropertyPane">
    <h2 id="lnkSavedFilters"><fmt:message key="heading.savedfilters"/></h2>
        <div class="Pane">
            <s:hidden name="_method" id="filterCallback" value="put"/>
            <ul>
            <li>
            	<a href="/issues?qFilterRemove=true&qTitle=<fmt:message key="action.filter.post.allissues"/>">
            		<fmt:message key="action.filter.pre.allissues"><fmt:param value="${allIssuesCount}"/></fmt:message>
            	</a>
            </li>
            <li style="">
            	<a href="/issues?qStatus=All&qTitle=<fmt:message key="action.filter.post.allincludingclosedissues"/>">
            		<fmt:message key="action.filter.pre.allincludingclosedissues"><fmt:param value="${allIncludingClosedIssuesCount}"/></fmt:message>
            	</a>
            </li>
            <li>
            	<a href="/issues?qAssignedTo=${currentUser.id}&qTitle=<fmt:message key="action.filter.post.myissues"/>">
            		<fmt:message key="action.filter.pre.myissues"><fmt:param value="${myIssuesCount}"/></fmt:message>
            	</a>
            </li>
            <li>
            	<a href="/issues?qWatcher=${currentUser.id}&qTitle=<fmt:message key="action.filter.post.imwatching"/>">
            		<fmt:message key="action.filter.pre.imwatching"><fmt:param value="${watchingIssuesCount}"/></fmt:message>
            	</a>
            </li>

            </ul>
            <s:if test="%{!currentUser.client}">
            <c:if test="${fn:length(currentUser.issueFilters) > 0}">
                <ul class="last">
                    <s:iterator value="currentUser.issueFilters" id="currentIssueFilter" status="stat">
                        <c:import url="/common/controls/IssueFilterItem.jsp">
                            <c:param name="title" value="${currentIssueFilter.title}"/>
                            <c:param name="querystring" value="${currentIssueFilter}"/>
                            <c:param name="id" value="${currentIssueFilter.id}"/>
                            <c:param name="currentFilter" value="${issueFilter}"/>
                            <c:param name="issueCount">
                        		<s:property value="getIssueCountForFilter(#currentIssueFilter)"/>
                            </c:param>
                        </c:import>
                    </s:iterator>
                </ul>
            </c:if>
            </s:if>
            <br/>
            </div>
        </div>
  </div>