| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| <!-- $Id: groups.jx 473861 2006-11-12 03:51:14Z gregor $ --> |
| |
| <jx:template |
| xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" |
| xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" |
| xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:i18n="http://apache.org/cocoon/i18n/2.1" |
| > |
| |
| <jx:if test="${usecase.getName().getClass().isInstance(messageId)}"> |
| <jx:set var="message" value="${inbox.getMessage(messageId)}"/> |
| |
| <div class="lenya-box" style="width: 100%"> |
| <div class="lenya-box-title"><i18n:text>selected-message</i18n:text></div> |
| <div class="lenya-box-body"> |
| <table class="lenya-table-noborder"> |
| <tr> |
| <td class="lenya-entry-caption"><i18n:text>From</i18n:text>:</td> |
| <td style="white-space: nowrap"> |
| <jx:out value="${message.getMessage().getSender().getName()}"/> |
| (<a href="?lenya.usecase=admin.user&userId=${message.getMessage().getSender().getId()}"><jx:out value="${message.getMessage().getSender().getId()}"/></a>) |
| </td> |
| </tr> |
| <tr> |
| <td class="lenya-entry-caption"><i18n:text>Subject</i18n:text>:</td> |
| <td> |
| <i18n:translate> |
| <i18n:text><jx:out value="${message.getMessage().getSubject()}"/></i18n:text> |
| <jx:forEach var="param" items="${message.getMessage().getSubjectParameters()}"> |
| <i18n:param><jx:out value="${param}"/></i18n:param> |
| </jx:forEach> |
| </i18n:translate> |
| </td> |
| </tr> |
| <tr> |
| <td class="lenya-entry-caption" valign="top"><i18n:text>Message</i18n:text>:</td> |
| <td> |
| <i18n:translate> |
| <i18n:text><jx:out value="${message.getMessage().getBody()}"/></i18n:text> |
| <jx:forEach var="param" items="${message.getMessage().getBodyParameters()}"> |
| <i18n:param><jx:out value="${param}"/></i18n:param> |
| </jx:forEach> |
| </i18n:translate> |
| </td> |
| </tr> |
| <tr> |
| <td/> |
| <td> |
| <br/> |
| <form method="POST"> |
| <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/> |
| <input type="hidden" name="lenya.continuation" value="${continuation.id}"/> |
| <input type="hidden" name="deleteMessageId" value="${messageId}"/> |
| <input type="submit" name="submit" value="Delete" i18n:attr="value"/> |
| </form> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| |
| </jx:if> |
| |
| </jx:template> |