{% extends "base.html" %} {% comment %} * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ * Contact: beat.support@idiap.ch * * This file is part of the beat.web module of the BEAT platform. * * Commercial License Usage * Licensees holding valid commercial BEAT licenses may use this file in * accordance with the terms contained in a written agreement between you * and Idiap. For further information contact tto@idiap.ch * * Alternatively, this file may be used under the terms of the GNU Affero * Public License version 3 as published by the Free Software and appearing * in the file LICENSE.AGPL included in the packaging of this file. * The BEAT platform 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. * * You should have received a copy of the GNU Affero Public License along * with the BEAT platform. If not, see http://www.gnu.org/licenses/. {% endcomment %} {% load fingerprint %} {% load ui_tags %} {% load humanize %} {% load search_tags %} {% load report_tags %} {% load markup %} {% block title %}{{ block.super }} - Report{% endblock %} {% block stylesheets %} {{ block.super }} {% code_editor_css %} {% endblock %} {% block scripts %} {{ block.super }} {% csrf_token %} {% if not report_number and report.get_status_display == 'Editable' and owner %} {% else %} {% endif %} {% code_editor_scripts "rst" %} {% endblock %} {% block content %}
{% csrf_token %} {% if report %}
{% report_breadcrumb report %}
{% if show_actionbar %}
{% report_actions report False %}
{% endif %}
{% with report.get_status_display as status %}

{% if report.short_description %} {{ report.short_description }}
{% endif %} {% ifequal request.user.username author %} Unique report id: {{ report.number }} (follow link to see review/publication URL.)
{% endifequal %} {% if report.publication_date %} Published: {{ report.publication_date|naturaltime }}
{% else %} Created: {{ report.creation_date|naturaltime }}
{% endif %} {% if report.last_edited_date != None and not report.publication_date %} Last Edited: {{ report.last_edited_date|naturaltime }}
{% endif %} {% if status == 'Editable' %} This report is {{ status }} (it may change in time)
{% elif status == 'Locked' %} This report is {{ status }} (not yet published)
Expires in {{ report.expiration_date|naturaltime }}, on {{ report.expiration_date }} (publish it to make it permanent)
{% endif %}

{% endwith %} {% report_viewer report owner report_number %}
{% endif %} {% list_selector "list_selector" %} {% multiple_selector "multiple_selector" %} {% multiple_selector "multiple_selector_updater" %} {% save_as_dialog "save_as_dialog" %} {% smart_selector "smart_selector" %} {% smart_selector "smart_selector_detail" %} {% endblock %}