blob: 5c791ed923e87da7bbe737f35db519839462a5da [file] [log] [blame]
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
--%>
<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ taglib uri="continuum" prefix="c1" %>
<%@ taglib uri="http://plexus.codehaus.org/redback/taglib-1.0" prefix="redback" %>
<ww:i18n name="localization.Continuum">
<h3><ww:text name="projectGroupNotifierSummaryComponent.groupNotifiers"><ww:param>${projectGroup.name}</ww:param></ww:text></h3>
<ww:if test="${not empty projectGroupNotifierSummaries}">
<ec:table items="projectGroupNotifierSummaries"
var="projectGroupNotifierSummary"
showExports="false"
showPagination="false"
showStatusBar="false"
filterable="false"
sortable="false">
<ec:row>
<ec:column property="type" title="projectView.notifier.type"/>
<ec:column property="recipient" title="projectView.notifier.recipient"/>
<ec:column property="events" title="projectView.notifier.events"/>
<!-- ec:column property="sender" title="projectView.notifier.sender"/ -->
<ec:column property="editActions" title="&nbsp;" width="1%">
<redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
<ww:url id="editUrl" action="editProjectGroupNotifier" namespace="/">
<ww:param name="projectGroupId">${pageScope.projectGroupNotifierSummary.projectGroupId}</ww:param>
<ww:param name="notifierId">${pageScope.projectGroupNotifierSummary.id}</ww:param>
<ww:param name="notifierType">${pageScope.projectGroupNotifierSummary.type}</ww:param>
</ww:url>
<ww:a href="%{editUrl}">
<img src="<ww:url value='/images/edit.gif' includeParams="none"/>" alt="<ww:text name="edit"/>" title="<ww:text name="edit"/>" border="0">
</ww:a>
</redback:ifAuthorized>
<redback:elseAuthorized>
<img src="<ww:url value='/images/edit_disabled.gif' includeParams="none"/>" alt="<ww:text name="edit"/>" title="<ww:text name="edit"/>" border="0">
</redback:elseAuthorized>
</ec:column>
<ec:column property="deleteActions" title="&nbsp;" width="1%">
<redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
<ww:url id="removeUrl" action="deleteProjectGroupNotifier!default.action" namespace="/">
<ww:param name="projectGroupId">${pageScope.projectGroupNotifierSummary.projectGroupId}</ww:param>
<ww:param name="notifierId">${pageScope.projectGroupNotifierSummary.id}</ww:param>
<ww:param name="notifierType">${pageScope.projectGroupNotifierSummary.type}</ww:param>
<ww:param name="confirmed" value="false"/>
</ww:url>
<ww:a href="%{removeUrl}">
<img src="<ww:url value='/images/delete.gif' includeParams="none"/>" alt="<ww:text name="delete"/>" title="<ww:text name="delete"/>" border="0">
</ww:a>
</redback:ifAuthorized>
<redback:elseAuthorized>
<img src="<ww:url value='/images/delete_disabled.gif' includeParams="none"/>" alt="<ww:text name="delete"/>" title="<ww:text name="delete"/>" border="0">
</redback:elseAuthorized>
</ec:column>
</ec:row>
</ec:table>
</ww:if>
<redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
<div class="functnbar3">
<ww:url id="addUrl" action="addProjectGroupNotifier" namespace="/" includeContext="false" includeParams="none" />
<ww:form action="%{addUrl}" method="post">
<input type="hidden" name="projectGroupId" value="<ww:property value="projectGroupId"/>"/>
<ww:submit value="%{getText('add')}"/>
</ww:form>
</div>
</redback:ifAuthorized>
<ww:if test="${not empty projectNotifierSummaries}">
<h3><ww:text name="projectGroupNotifierSummaryComponent.projectNotifiers"/></h3>
<ec:table items="projectNotifierSummaries"
var="projectNotifierSummary"
showExports="false"
showPagination="false"
showStatusBar="false"
filterable="false"
sortable="false">
<ec:row>
<ec:column property="projectName" title="projectView.project.name">
<ww:url id="projectUrl" action="projectView" namespace="/" includeParams="none">
<ww:param name="projectId" value="${pageScope.projectNotifierSummary.projectId}"/>
</ww:url>
<ww:a href="%{projectUrl}">${pageScope.projectNotifierSummary.projectName}</ww:a>
</ec:column>
<ec:column property="type" title="projectView.notifier.type"/>
<ec:column property="recipient" title="projectView.notifier.recipient"/>
<ec:column property="events" title="projectView.notifier.events"/>
<!-- ec:column property="sender" title="projectView.notifier.sender"/ -->
<ec:column property="editActions" title="&nbsp;" width="1%">
<redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
<c:choose>
<c:when test="${!pageScope.projectNotifierSummary.fromProject}">
<ww:url id="editUrl" action="editProjectNotifier" namespace="/" includeParams="none">
<ww:param name="projectGroupId">${pageScope.projectNotifierSummary.projectGroupId}</ww:param>
<ww:param name="projectId">${pageScope.projectNotifierSummary.projectId}</ww:param>
<ww:param name="notifierId">${pageScope.projectNotifierSummary.id}</ww:param>
<ww:param name="notifierType">${pageScope.projectNotifierSummary.type}</ww:param>
<ww:param name="fromGroupPage" value="true"/>
</ww:url>
<ww:a href="%{editUrl}">
<img src="<ww:url value='/images/edit.gif' includeParams="none"/>" alt="<ww:text name="edit"/>" title="<ww:text name="edit"/>" border="0">
</ww:a>
</c:when>
<c:otherwise>
<img src="<ww:url value='/images/edit_disabled.gif' includeParams="none"/>" alt="<ww:text name="edit"/>" title="<ww:text name="edit"/>" border="0">
</c:otherwise>
</c:choose>
</redback:ifAuthorized>
<redback:elseAuthorized>
<img src="<ww:url value='/images/edit_disabled.gif' includeParams="none"/>" alt="<ww:text name="edit"/>" title="<ww:text name="edit"/>" border="0">
</redback:elseAuthorized>
</ec:column>
<ec:column property="deleteActions" title="&nbsp;" width="1%">
<redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
<c:choose>
<c:when test="${!pageScope.projectNotifierSummary.fromProject}">
<ww:url id="removeUrl" action="deleteProjectNotifier" namespace="/">
<ww:param name="projectGroupId">${pageScope.projectNotifierSummary.projectGroupId}</ww:param>
<ww:param name="projectId">${pageScope.projectNotifierSummary.projectId}</ww:param>
<ww:param name="notifierId">${pageScope.projectNotifierSummary.id}</ww:param>
<ww:param name="confirmed" value="false"/>
<ww:param name="fromGroupPage" value="true"/>
</ww:url>
<ww:a href="%{removeUrl}">
<img src="<ww:url value='/images/delete.gif' includeParams="none"/>" alt="<ww:text name="delete"/>" title="<ww:text name="delete"/>" border="0">
</ww:a>
</c:when>
<c:otherwise>
<img src="<ww:url value='/images/delete_disabled.gif' includeParams="none"/>" alt="<ww:text name="delete"/>" title="<ww:text name="delete"/>" border="0">
</c:otherwise>
</c:choose>
</redback:ifAuthorized>
<redback:elseAuthorized>
<img src="<ww:url value='/images/delete_disabled.gif' includeParams="none"/>" alt="<ww:text name="delete"/>" title="<ww:text name="delete"/>" border="0">
</redback:elseAuthorized>
</ec:column>
</ec:row>
</ec:table>
</ww:if>
</ww:i18n>