Page MenuHomec4science

webmessage_display_msg.html
No OneTemporary

File Metadata

Created
Mon, Mar 10, 05:04

webmessage_display_msg.html

{#
## This file is part of Invenio.
## Copyright (C) 2012 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#}
{% extends "page.html" %}
{% set title = _("Read a message") %}
{% block header %}
<script type="text/javascript" src="{{ url_for("static", filename="/js/jquery/jquery-ui-1.8.17.custom.min.js") }}"></script>
<style type="text/css" src="{{ url_for("static", filename="/js/jquery/redmond/jquery-ui-1.8.17.custom.css") }}"></style>
{% endblock header %}
{% block body %}
<table class="mailbox" style="width: 70%;">
<thead class="mailboxheader">
<tr>
<td class="inboxheader" colspan="2">
<table class="messageheader">
<tbody><tr>
<td class="mailboxlabel">From:</td>
<td><a href="{{ url_for('.write', msg_to=m.message.user_from.nickname) }}">
{{ m.message.user_from.nickname }}
</a></td>
</tr>
<tr>
<td class="mailboxlabel">Subject:</td>
<td style="width: 100%;">{{ m.message.subject }}</td>
</tr>
<tr>
<td class="mailboxlabel">Sent on:</td>
<td>{{ m.message.sent_date }}</td>
</tr>
<tr>
<td class="mailboxlabel">Sent to:</td>
<td>
{% for nickname in m.message.user_nicks %}
<a href="{{ url_for('.write', msg_to=nickname) }}">{{ nickname }}</a>{{ ", " if not loop.last }}
{% endfor %}
</td>
</tr>
<tr>
<td class="mailboxlabel">Sent to groups:</td>
<td>
{% for group in m.message.group_names %}
<a href="{{ url_for('.write', msg_to_group=group) }}">{{ group }}</a>{{ ", " if not loop.last }}
{% endfor %}
</td>
</tr>
</tbody></table>
</td>
</tr>
</thead>
<tfoot>
<tr>
<td></td>
<td></td>
</tr>
</tfoot>
<tbody class="mailboxbody">
<tr class="mailboxrecord">
<td colspan="2">{{ m.message.body }}</td>
</tr>
<tr class="mailboxfooter">
<td>
<form name="reply" action="{{ url_for ('.write', msg_reply_id=m.message.id)}}" method="post">
<input class="formbutton" name="reply" value="{{ _("REPLY") }}" type="submit">
</form>
</td>
<td>
<form name="del:q
etemsg" action="{{ url_for('.delete', msgid=m.message.id) }}" method="post">
<input class="formbutton" name="delete" value="{{ _("DELETE") }}" type="submit">
</form>
</td>
</tr>
</tbody>
</table>
{% endblock %}

Event Timeline