<%@ page contentType="text/html;charset=Shift_JIS" language="java" %>
<%-- 共通ページヘッダ --%>
<%@ include file="/jsp/common/PageHeader.inc" %>
<jsp:useBean id="UserInfo" scope="session" type="jp.gr.java_conf.bugslife.user.UserInfo" />

<html:html locale="true">
<head>
<!-- マイバグ一覧 -->
<title><bean:message key="mybug.title.displayname" /></title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>

<body>
<!--======================= メニュー ==============================-->
<%@ include file="/jsp/common/Menu6.inc" %>
<!--======================= メニュー end ==========================-->
<br>
<table cellpadding="1" cellspacing="2">
  <tr class="label3"> 
    <td colspan="8">
    <!-- 担当中のバグ -->
      <div align="center"><bean:message key="mybug.category1.displayname" /></div>
    </td>
  </tr>
  <tr class="label3"> 
    <td><bean:message key="bno.displayname" /></td>
    <td><bean:message key="severity.displayname" /></td>
    <td><bean:message key="milestone.displayname" /></td>
    <td><bean:message key="priority.displayname" /></td>
    <td><bean:message key="status.displayname" /></td>
    <td><bean:message key="title.displayname" /></td>
  </tr>
  <logic:notPresent name="myBug" scope="session">
	    <tr> 
	       <td colspan="8">
	          <br>
	          <!-- 現在、抱えているバグはありません (^_^)Vﾌﾞｲ -->
			  <b><bean:message key="mybug.nothing.displayname" /><b>
	          <br>
	      </td>
	  </tr>
  </logic:notPresent>
  <logic:present name="myBug" scope="session">
	  <logic:iterate id="bug" name="myBug" scope="session" type="Bug" >
	    <tr> 
	       <td class="bak1">
	        <div align="center">
	          <html:link forward="/showAll" name="bug" property="mapping">
	            <bean:write name="bug" property="bnoString" />
	          </html:link>
	        </div>
	      </td>
	      <td class="bak1"><bean:write name="bug" property="severityString" /></td>
	      <td class="bak1"><bean:write name="bug" property="milestoneString" /></td>
	      <td class="bak1"><bean:write name="bug" property="priorityString" /></td>
	      <td class="bak1"><bean:write name="bug" property="statusString" /></td>
	      <td class="bak1a"><bean:write name="bug" property="title" /></td>
	  </tr>
	  </logic:iterate>
  </logic:present>
</table>
<p>
<table cellpadding="1" cellspacing="2">
  <tr class="label3"> 
    <td colspan="8">
    <!-- 自分が関係した未完了のバグ -->
      <div align="center"><bean:message key="mybug.category2.displayname" /></div>
    </td>
  </tr>
  <tr class="label3"> 
    <td><bean:message key="bno.displayname" /></td>
    <td><bean:message key="severity.displayname" /></td>
    <td><bean:message key="milestone.displayname" /></td>
    <td><bean:message key="priority.displayname" /></td>
    <td><bean:message key="issuDate.displayname" /></td> 
    <td><bean:message key="status.displayname" /></td>
    <td><bean:message key="relatedRole.displayname" /></td>
    <td><bean:message key="title.displayname" /></td>
  </tr>
  <logic:iterate id="bug" name="dispatchBug" scope="session" type="Bug" >
    <tr> 
       <td class="bak1">
        <div align="center">
          <html:link forward="/showAll" name="bug" property="mapping">
            <bean:write name="bug" property="bnoString" />
          </html:link>
        </div>
      </td>
      <td class="bak1"><bean:write name="bug" property="severityString" /></td>
      <td class="bak1"><bean:write name="bug" property="milestoneString" /></td>
      <td class="bak1"><bean:write name="bug" property="priorityString" /></td>
      <td class="bak1"><bean:write name="bug" property="issuDateString" /></td>
      <td class="bak1"><bean:write name="bug" property="statusString" /></td>
      <td class="bak1"><%= bug.getRole(UserInfo.getUno()) %></td>
      <td class="bak1a"><bean:write name="bug" property="title" /></td>
  </tr>
  </logic:iterate>
</table>

<%-- 共通ページフッダ --%>
<%@ include file="/jsp/common/PageFooter.inc" %>
</body>
</html:html>
