Page MenuHomec4science

webmessage_view.html
No OneTemporary

File Metadata

Created
Wed, Jan 8, 18:00

webmessage_view.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 body %}
<div class="row">
<dl class="dl-horizontal well offset1 span5">
<dt>{{ _("From") }}</dt>
<dd>
<a href="{{ url_for('.write', msg_to=m.message.user_from.nickname) }}">
{{ m.message.user_from.nickname }}
</a>
</dd>
<dt>{{ _("Subject") }}</dt>
<dd>{{ m.message.subject }}</dd>
<dt>{{ _("Sent on") }}</dt>
<dd>{{ m.message.sent_date }}</dd>
<dt>{{ _("Sent to") }}</dt>
<dd>
{% for nickname in m.message.user_nicks %}
<a href="{{ url_for('.write', msg_to=nickname) }}">{{ nickname }}</a>{{ ", " if not loop.last }}
{% endfor %}
</dd>
<dt>{{ _("Sent to groups") }}</dt>
<dd>
{% for group in m.message.group_names %}
<a href="{{ url_for('.write', msg_to_group=group) }}">{{ group }}</a>{{ ", " if not loop.last }}
{% endfor %}
</dd>
</dl>
</div>
<div class="row">
<div style="min-height: 100px;" class="offset1 span10 thumbnail">
{{ m.message.body }}
</div>
</div>
<div class="form-actions">
<a href="{{ url_for('.write', msg_reply_id=m.message.id) }}" class="btn btn-primary">{{ _("Reply") }}</a>
<a href="{{ url_for('.delete', msgid=m.message.id) }}" class="pull-right btn btn-danger">{{ _("Delete") }}</a>
</div>
{% endblock %}

Event Timeline