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

<html:html locale="true">
<head>
<title><bean:message key="history.title.displayname" /></title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>

<body>
<!--======================= メニュー ==============================-->
<%@ include file="/jsp/common/Menu2.inc" %>
<!--======================= メニュー end ==========================-->
<br>
<html:link forward="/bug1/show" name="bug" property="mapping"><bean:message key="bug.trouble.displayname" /></html:link>
| <html:link forward="/bug2/show" name="bug" property="mapping"><bean:message key="bug.judge.displayname" /></html:link>
| <html:link forward="/bug3/show" name="bug" property="mapping"><bean:message key="bug.analyze.displayname" /></html:link>
| <html:link forward="/bug4/show" name="bug" property="mapping"><bean:message key="bug.update.displayname" /></html:link>
| <html:link forward="/bug5/show" name="bug" property="mapping"><bean:message key="bug.confirm.displayname" /></html:link>
| <html:link forward="/showAll" name="bug" property="mapping"><bean:message key="bug.all.displayname" /></html:link>
| <html:link forward="/bugAttachment/show" name="bug" property="mapping"><bean:message key="bug.attach.displayname" /></html:link>
| <font size="4"><b><bean:message key="history.title2.displayname" /></b></font>
| <html:link forward="/bugDepndency" name="bug" property="mapping"><bean:message key="bug.depend.displayname" /></html:link>
| <html:link forward="/bugAssign" name="bug" property="mapping"><bean:message key="bug.assign.displayname" /></html:link>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<br>

  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td class="labelHeader" colspan="5"><bean:message key="history.title.displayname" /></td>
    </tr>
    <tr> 
      <td class="label1"><bean:message key="history.who.displayname" /></td>
      <td class="label1"><bean:message key="history.when.displayname" /></td>
      <td class="label1"><bean:message key="history.what.displayname" /></td>
      <td class="label1"><bean:message key="history.newValue.displayname" /></td>
      <td class="label1"><bean:message key="history.oldValue.displayname" /></td>
    </tr>
<%
     String date = "";
     String udate = "";
     String uname = "";
%>
    <logic:iterate id="activity" name="bug" property="bugActivitys" type="BugActivity" >
      <tr> 
<%
     if (date.equals(activity.getUpdateDateString())) {
	     uname = "";
	     udate = "";
	 } else {
	     uname = activity.getUpdateUname();
	     udate = activity.getUpdateDateString();
	     date = activity.getUpdateDateString();
	 }
	 
%>
        <td class="bak1">
<%--          <bean:write name="activity" property="updateUname" /> --%>
          <%= uname %>
        </td>
        <td class="bak1">
          <%= udate %>
        </td>
        <td class="bak1">
          <bean:write name="activity" property="name" /> 
        </td>
        <td class="bak1">
          <bean:write name="activity" property="newValue" />
        </td>
        <td class="bak1">
          <bean:write name="activity" property="oldValue" />
        </td>
      </tr>
    </logic:iterate>
  </table>

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