home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 May
/
CMCD0505.ISO
/
Software
/
Shareware
/
Programare
/
bugzero
/
jsp
/
_trail.jspf
< prev
next >
Wrap
Text File
|
2004-12-03
|
3KB
|
61 lines
<center>
<table cellspacing=2 cellpadding=2 border=0 width=98%>
<tr><td colspan=2 height=40>
<b><%=label.get("audit_trail", projectId)%></b> (<%=label.get("change_history", projectId)%>):
</td></tr>
<% Trail[] trailArray = issue.getTrailArray();
String versionLabel;
String descriptionLabel;
String ccMail;
for (int index=trailArray.length-1; index>=0; index--) {
versionLabel = label.get("issue_version", projectId) + (index+1);
if (index == 0) {
descriptionLabel = label.get("detail", projectId);
} else {
descriptionLabel = label.get("response", projectId);
}
Access access = conf.getAccess();
DateTime dateTime = (DateTime)session.getAttribute("datetime");
%>
<tr><td class="e8" valign=top width=80>
<%=versionLabel%></td>
<td class="f1">
<% if (conf.isFieldEnabled("author", person.getGroup())) { %>
<%=label.get("author", projectId)%>: <%=HtmlParser.escapeTag(access.getFullname(trailArray[index].get("author")))%>,
<% } %>
<%=label.get("date")%>: <%=dateTime.localTime(trailArray[index].getDate())%><br>
<% if (conf.isFieldEnabled("category", person.getGroup())) { %>
<%=label.get("category", projectId)%>: <%=HtmlParser.escapeTag(trailArray[index].get("category"))%>,
<% } if (conf.isFieldEnabled("severity", person.getGroup())) { %>
<%=label.get("severity", projectId)%>: <%=HtmlParser.escapeTag(trailArray[index].get("severity"))%>,
<% } if (conf.isFieldEnabled("priority", person.getGroup())) { %>
<%=label.get("priority", projectId)%>: <%=HtmlParser.escapeTag(trailArray[index].get("priority"))%>,
<% } %>
<%=label.get("state", projectId)%>: <%=HtmlParser.escapeTag(trailArray[index].get("state"))%>,
<% if (conf.isFieldEnabled("responsible", person.getGroup())) {
String resp=trailArray[index].get("responsible");
if (resp == null) resp = "nobody";%>
<%=label.get("responsible", projectId)%>: <%=HtmlParser.escapeTag(access.getFullname(resp))%>
<% } if (conf.isFieldEnabled("cc_mail", person.getGroup())) { %>
<% ccMail = trailArray[index].getCCFormated();
if (ccMail != null) { %>
<br><%=label.get("cc_mail", projectId)%> <%=HtmlParser.escapeTag(ccMail)%>
<% }} %>
</td></tr>
<tr><td class="e8" valign=top><%=descriptionLabel%></td>
<td class="f1"><%=HtmlParser.toHtml(trailArray[index].get("detail"))%></td></tr>
<% com.websina.bean.File[] filenames = trailArray[index].getFilenames();
if (filenames != null && filenames.length > 0) { %>
<tr><td class="e8"><%=label.get("attachment", projectId)%></td>
<td class="f1">
<% for (int i=0; i<filenames.length; i++) {
String filename = filenames[i].getName();
String size = filenames[i].getKb();
String filenameEncoded = com.websina.util.URLEncoder.encode(filename, charset);
%>
<a target="_file" href="<%=contextPath%>/servlet/download/<%=filenameEncoded%>?trail_id=<%=trailArray[index].getId()%>&filename=<%=com.websina.util.FileNameEncoder.encode(filenameEncoded)%>"><%=filename%></a> <%=size%>
<% } %>
</td></tr>
<% }}%>
</table>
</center>