<%@ page import="com.atlassian.license.LicenseManager,
                 com.atlassian.license.License,
                 com.atlassian.license.LicenseManager"%>
<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="jiratags" prefix="jira" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>

<html>
<head>
	<title><webwork:text name="'user.profile'"/>: <webwork:property value="user/fullName" /></title>
</head>

<body>

<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td width=200 bgcolor="f0f0f0" valign=top>
    <jsp:include page="/includes/panels/user_summary_pane.jsp" />
</td>
<td bgcolor=ffffff valign=top>

<table width=100% cellpadding=10 cellspacing=0 border=0><tr><td>

<webwork:property value="user">


<table cellpadding=0 cellspacing=0 border=0 bgcolor=bbbbbb width=100%><tr><td>
<table cellpadding=4 cellspacing=1 border=0 width=100% bgcolor=bbbbbb>
<tr>
	<td bgcolor=f0f0f0 colspan=2>
		<h3 class="formtitle"><webwork:text name="'user.profile'"/> : <webwork:property value="fullName" /></h3>
	</td>
</tr>
<tr>
	<td bgcolor=ffffff width=70% valign=top>
        &nbsp;
	</td>

	<td bgcolor=fffff0 width=30% valign=top nowrap>
		<h3 class="formtitle"><webwork:text name="'user.summary'"/></h3>
        <webwork:if test="/user == /remoteUser">
		<p>
            <b><webwork:text name="'user.filters'"/></b><br>
            <table>
                <tr>
                <td><li><webwork:text name="'userfilters.assigned'"/></li></td><td><font size = 1>( <a href="IssueNavigator.jspa?reset=true&assigneeSelect=issue_current_user"><webwork:text name="'common.filters.all'"/></a> | <a href="IssueNavigator.jspa?reset=true&assigneeSelect=issue_current_user&resolution=-1"><webwork:text name="'common.concepts.openissues'"/></a> )</font></td>
                </tr>
                <tr>
			    <td><li><webwork:text name="'userfilters.inprogress'"/></li></td><td><font size = 1>( <a href="IssueNavigator.jspa?reset=true&assigneeSelect=issue_current_user&status=3"><webwork:text name="'common.filters.all'"/></a> )</font></td>
                </tr>
                <tr>
			    <td><li><webwork:text name="'userfilters.reported'"/></li></td><td><font size = 1>( <a href="IssueNavigator.jspa?reset=true&reporterSelect=issue_current_user"><webwork:text name="'common.filters.all'"/></a> | <a href="IssueNavigator.jspa?reset=true&reporterSelect=issue_current_user&resolution=-1"><webwork:text name="'common.concepts.openissues'"/></a> )</font></td>
                </tr>
            </table>
		</p>

		<p>
			<b><webwork:text name="'user.assignedopen'"/></b><br>
			<table cellpadding=2 cellspacing=0 border=0 width=90% align=center>
			<webwork:iterator value="/browseableProjects">
			<tr>
				<td valign=top><a href="IssueNavigator.jspa?reset=true&pid=<webwork:url value="long('id')" />&resolution=-1&assigneeSelect=issue_current_user"><img src="<%= request.getContextPath() %>/images/icons/status_assigned.gif" height=16 width=16 border=0 align=absmiddle alt="Assigned" title="Assigned"></a>
				<a href="IssueNavigator.jspa?reset=true&pid=<webwork:url value="long('id')" />&resolution=-1&assigneeSelect=issue_current_user"><webwork:property value="string('name')" /></a></td>
				<td valign=top align=right width=30%>
					<webwork:property value="issuesByProject(.)" />
				</td>
			</tr>
			</webwork:iterator>
			</table>
		</p>
        </webwork:if>
        <webwork:else>
            <p>
                <b><webwork:text name="'user.filters'"/></b><br>
                <table>
                <tr>
                <td><li><webwork:text name="'userfilters.assigned'"/></li></td><td><font size = 1>( <a href="IssueNavigator.jspa?reset=true&assigneeSelect=specificuser&assignee=<webwork:property value="/user"/>"><webwork:text name="'common.filters.all'"/></a> | <a href="IssueNavigator.jspa?reset=true&assigneeSelect=specificuser&assignee=<webwork:property value="/user"/>&resolution=-1"><webwork:text name="'common.concepts.openissues'"/></a> )</font></td>
                </tr>
                <tr>
			    <td><li><webwork:text name="'userfilters.inprogress'"/></li></td><td><font size = 1>( <a href="IssueNavigator.jspa?reset=true&assigneeSelect=specificuser&assignee=<webwork:property value="/user"/>&status=3"><webwork:text name="'common.filters.all'"/></a> )</font></td>
                </tr>
                <tr>
			    <td><li><webwork:text name="'userfilters.reported'"/></li></td><td><font size = 1>( <a href="IssueNavigator.jspa?reset=true&reporterSelect=specificuser&reporter=<webwork:property value="/user"/>"><webwork:text name="'common.filters.all'"/></a> | <a href="IssueNavigator.jspa?reset=true&reporterSelect=specificuser&reporter=<webwork:property value="/user"/>&resolution=-1"><webwork:text name="'common.concepts.openissues'"/></a> )</font></td>
                </tr>
                </table>
            </p>
            <p>
                <b><webwork:text name="'user.assignedopen'"/></b><br>
			    <table cellpadding=2 cellspacing=0 border=0 width=90% align=center>
			        <webwork:iterator value="/browseableProjects">
			        <tr>
				    <td valign=top><a href="IssueNavigator.jspa?reset=true&pid=<webwork:url value="long('id')" />&resolution=-1&assigneeSelect=specificuser&assignee=<webwork:property value="/user"/>"><img src="<%= request.getContextPath() %>/images/icons/status_assigned.gif" height=16 width=16 border=0 align=absmiddle alt="Assigned" title="Assigned"></a>
				    <a href="IssueNavigator.jspa?reset=true&pid=<webwork:url value="long('id')" />&resolution=-1&assigneeSelect=specificuser&assignee=<webwork:property value="/user"/>"><webwork:property value="string('name')" /></a></td>
				    <td valign=top align=right width=30%>
					<webwork:property value="issuesByProject(.)" />
				    </td>
			        </tr>
			        </webwork:iterator>
			    </table>
            </p>
        </webwork:else>
	</td>
</tr>
</table>
</table>
</webwork:property>

</td></tr></table>
</td></tr></table>

</body>
</html>

