<%@ page language="java" contentType="text/html; charset=utf-8" errorPage="/error.action" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="emm" uri="https://emm.agnitas.de/jsp/jsp/common" %>
<%@ taglib prefix="mvc" uri="https://emm.agnitas.de/jsp/jsp/spring" %>

<%--@elvariable id="datasourceId" type="java.lang.Integer"--%>

<c:url var="logsOverviewLink" value="/recipientsreport/list.action"/>

<c:set var="agnNavigationKey" 		value="RecipientsReport" 	scope="request" />
<c:set var="agnTitleKey" 			value="statistic.protocol" 	scope="request" />
<c:set var="agnSubtitleKey" 		value="statistic.protocol" 	scope="request" />
<c:set var="sidemenu_active" 		value="ImportExport" 		scope="request" />
<c:set var="sidemenu_sub_active" 	value="statistic.protocol" 	scope="request" />
<c:set var="agnHighlightKey" 		value="statistic.protocol" 	scope="request" />
<c:set var="isBreadcrumbsShown" 	value="true" 				scope="request" />
<c:set var="agnBreadcrumbsRootKey" 	value="ImportExport" 		scope="request" />
<c:set var="agnHelpKey" 			value="Logs" 				scope="request" />

<emm:instantiate var="agnBreadcrumbs" type="java.util.LinkedHashMap" scope="request">
    <emm:instantiate var="agnBreadcrumb" type="java.util.LinkedHashMap">
        <c:set target="${agnBreadcrumbs}" property="0" value="${agnBreadcrumb}"/>
        <c:set target="${agnBreadcrumb}" property="textKey" value="statistic.protocol"/>
        <c:set target="${agnBreadcrumb}" property="url" value="${logsOverviewLink}"/>
    </emm:instantiate>

    <c:if test="${!empty datasourceId}">
        <c:set var="datasourceCrumb">
            <mvc:message code="recipient.DatasourceId"/>=${datasourceId}
        </c:set>
        <emm:instantiate var="agnBreadcrumb" type="java.util.LinkedHashMap">
            <c:set target="${agnBreadcrumbs}" property="1" value="${agnBreadcrumb}"/>
            <c:set target="${agnBreadcrumb}" property="text" value="${datasourceCrumb}"/>
        </emm:instantiate>
    </c:if>
</emm:instantiate>
