Author: aron.gombas Date: 2005-12-22 09:59:52 -0500 (Thu, 22 Dec 2005) New Revision: 1923 Added: trunk/labs/kosmos/web-portlet/pages/jira_monitoring_assignee_details.jsp Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/portlet/jira/JiraMonitoringPortlet.java trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_pl.properties trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp trunk/labs/kosmos/web-portlet/pages/jira_monitoring_issue_details.jsp trunk/labs/kosmos/web-portlet/pages/jira_monitoring_project_details.jsp Log: JIRA: new subscreen "Assignee Details" Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/portlet/jira/JiraMonitoringPortlet.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/portlet/jira/JiraMonitoringPortlet.java 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/portlet/jira/JiraMonitoringPortlet.java 2005-12-22 14:59:52 UTC (rev 1923) @@ -88,7 +88,7 @@ if(id != null) { // show details String action = request.getParameter("action"); - String page = action.equals("viewProjectDetails") ? "/pages/jira_monitoring_project_details.jsp" : "/pages/jira_monitoring_issue_details.jsp"; + String page = action.equals("viewProjectDetails") ? "/pages/jira_monitoring_project_details.jsp" : (action.equals("viewAssigneeDetails") ? "/pages/jira_monitoring_assignee_details.jsp" : "/pages/jira_monitoring_issue_details.jsp"); JiraProject project = (JiraProject)ModelUtils.findInCollection(projects, id); if(project != null) { Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties 2005-12-22 14:59:52 UTC (rev 1923) @@ -8,6 +8,7 @@ jiraproject.key=Key jiraproject.lead=Lead jiraproject.assignees=Assignees +jiraproject.assigneeDetails=Assignee Details jiraproject.issueDetails=Issue Details jiraproject.description=Description Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties 2005-12-22 14:59:52 UTC (rev 1923) @@ -8,6 +8,7 @@ jiraproject.key=Cl\u00e9 jiraproject.lead=Responsable jiraproject.assignees=Assignees_fr +jiraproject.assigneeDetails=Assignee Details_fr jiraproject.issueDetails=D\u00e9tails des demandes jiraproject.description=Description Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties 2005-12-22 14:59:52 UTC (rev 1923) @@ -8,6 +8,7 @@ jiraproject.key=Azonos jiraproject.lead=Vezetiraproject.assignees=Illetsek +jiraproject.assigneeDetails=Assignee Details_hu jiraproject.issueDetails=HibRletesen jiraproject.description=Les Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_pl.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_pl.properties 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_pl.properties 2005-12-22 14:59:52 UTC (rev 1923) @@ -8,6 +8,7 @@ jiraproject.key=Klucz jiraproject.lead=Mened\u017cer projektu jiraproject.assignees=Przydzieleni +jiraproject.assigneeDetails=Assignee Details_pl jiraproject.issueDetails=Szczeg\u00f3\u0142y problemu jiraproject.description=Opis Modified: trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp =================================================================== --- trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp 2005-12-22 14:59:52 UTC (rev 1923) @@ -26,6 +26,9 @@ <display:column titleKey="jiraproject.lead" style="white-space:nowrap" property="lead" sortable="true"/> <display:column titleKey="jiraproject.assignees" style="white-space:nowrap" sortProperty="openIssueAssignees" sortable="true"> <fmt:formatNumber value="${projectsIt.openIssueAssignees}"/> + <a href="<portlet:renderURL><portlet:param name="action" value="viewAssigneeDetails"/><portlet:param name="id" value="<%= pageContext.getAttribute("id").toString() %>"/></portlet:renderURL>"> + <img src="<%= renderRequest.getContextPath() %>/pages/images/info.gif" title="<fmt:message key="jiraproject.assigneeDetails"/>" border="0"/> + </a> </display:column> <display:column titleKey="jiraproject.openIssues" style="white-space:nowrap" sortProperty="openIssues" sortable="true"> <c:if test="${projectsIt.openIssues > 10}"><span class="portlet-msg-error"></c:if> Added: trunk/labs/kosmos/web-portlet/pages/jira_monitoring_assignee_details.jsp =================================================================== --- trunk/labs/kosmos/web-portlet/pages/jira_monitoring_assignee_details.jsp 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/pages/jira_monitoring_assignee_details.jsp 2005-12-22 14:59:52 UTC (rev 1923) @@ -0,0 +1,40 @@ +<%@include file="includes/taglibs.jsp"%> + +<portlet:defineObjects/> +<fmt:setBundle basename="hu.midori.kosmos.portlet.jira.jira_monitoring" scope="application"/> + +<table> + <tr class="portlet-section-body"> + <td valign="top"><fmt:message key="jiraproject.openIssuesByAssignee"/>:</td> + <td valign="top"><img src="<c:out value="${project.openIssuesPerAssigneeChartUrl}"/>" title="<fmt:message key="jiraproject.openIssuesByAssignee"/>"/></td> + <td valign="top"> + + <c:set var="listSize" value="${fn:length(project.openIssuesPerAssignee)}"/> + <c:set var="listIndex" value="0"/> + <%@include file="includes/table_expander.jsp" %> + + <table> + <c:forEach var="item" items="${project.openIssuesPerAssignee}" varStatus="status"> + <c:choose> + <c:when test="${status.index < 10}"> + <tr id="row-<portlet:namespace/>-0-<c:out value="${status.index}"/>" class="portlet-section-alternate"> + </c:when> + <c:otherwise> + <tr id="row-<portlet:namespace/>-0-<c:out value="${status.index}"/>" style="display: none" class="portlet-section-alternate"> + </c:otherwise> + </c:choose> + <td><c:out value="${1 + status.index}"/></td> + <td><c:out value="${item.key}"/></td> + <td><c:out value="${item.value}"/></td> + </tr> + </c:forEach> + </table> + </td> + </tr> + <%@include file="includes/table_footer.jsp"%> +</table> + +<form action="<portlet:renderURL/>" method="post"> + <input type="submit" class="portlet-form-button" name="submit" value="<fmt:message key="action.back"/>"/> +</form> + \ No newline at end of file Modified: trunk/labs/kosmos/web-portlet/pages/jira_monitoring_issue_details.jsp =================================================================== --- trunk/labs/kosmos/web-portlet/pages/jira_monitoring_issue_details.jsp 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/pages/jira_monitoring_issue_details.jsp 2005-12-22 14:59:52 UTC (rev 1923) @@ -5,8 +5,8 @@ <table> <tr class="portlet-section-body"> - <td><fmt:message key="jiraproject.openIssuesByPriority"/>:</td> - <td><img src="<c:out value="${project.openIssuesPerPriorityChartUrl}"/>" title="<fmt:message key="jiraproject.openIssuesByPriority"/>"/></td> + <td valign="top"><fmt:message key="jiraproject.openIssuesByPriority"/>:</td> + <td valign="top"><img src="<c:out value="${project.openIssuesPerPriorityChartUrl}"/>" title="<fmt:message key="jiraproject.openIssuesByPriority"/>"/></td> <td valign="top"> <table> <tr class="portlet-section-alternate"> @@ -30,33 +30,6 @@ </table> </td> </tr> - <tr class="portlet-section-alternate"> - <td valign="top"><fmt:message key="jiraproject.openIssuesByAssignee"/>:</td> - <td valign="top"><img src="<c:out value="${project.openIssuesPerAssigneeChartUrl}"/>" title="<fmt:message key="jiraproject.openIssuesByAssignee"/>"/></td> - <td valign="top"> - - <c:set var="listSize" value="${fn:length(project.openIssuesPerAssignee)}"/> - <c:set var="listIndex" value="0"/> - <%@include file="includes/table_expander.jsp" %> - - <table> - <c:forEach var="item" items="${project.openIssuesPerAssignee}" varStatus="status"> - <c:choose> - <c:when test="${status.index < 10}"> - <tr id="row-<portlet:namespace/>-0-<c:out value="${status.index}"/>" class="portlet-section-body"> - </c:when> - <c:otherwise> - <tr id="row-<portlet:namespace/>-0-<c:out value="${status.index}"/>" style="display: none" class="portlet-section-body"> - </c:otherwise> - </c:choose> - <td><c:out value="${1 + status.index}"/></td> - <td><c:out value="${item.key}"/></td> - <td><c:out value="${item.value}"/></td> - </tr> - </c:forEach> - </table> - </td> - </tr> <%@include file="includes/table_footer.jsp"%> </table> Modified: trunk/labs/kosmos/web-portlet/pages/jira_monitoring_project_details.jsp =================================================================== --- trunk/labs/kosmos/web-portlet/pages/jira_monitoring_project_details.jsp 2005-12-22 14:54:19 UTC (rev 1922) +++ trunk/labs/kosmos/web-portlet/pages/jira_monitoring_project_details.jsp 2005-12-22 14:59:52 UTC (rev 1923) @@ -13,8 +13,8 @@ <td colspan="2"><a href="<c:out value="${project.projectUrl}"/>"><c:out value="${project.projectUrl}"/></a></td> </tr> <tr class="portlet-section-body"> - <td><fmt:message key="jiraproject.issuesByStatus"/>:</td> - <td><img src="<c:out value="${project.issuesPerStatusChartUrl}"/>" title="<fmt:message key="jiraproject.issuesByStatus"/>"/></td> + <td valign="top"><fmt:message key="jiraproject.issuesByStatus"/>:</td> + <td valign="top"><img src="<c:out value="${project.issuesPerStatusChartUrl}"/>" title="<fmt:message key="jiraproject.issuesByStatus"/>"/></td> <td valign="top"> <table> <tr class="portlet-section-alternate"> |