{% extends "datarequests/show.html" %} {% block breadcrumb_content %} {{ super() }} {% endblock %} {% block content_action %} {% endblock %} {% block content_primary_nav %} {% endblock %} {% block subtitle %} {% endblock %} {% block primary_content_inner %} {% if h.check_access('update_datarequest', {'id':datarequest_id }) %} {% link_for _('Manage'), controller='ckanext.datarequests.controllers.ui_controller:DataRequestsUI', action='update', id=datarequest_id, class_='btn btn-default', icon='wrench' %} {% endif %} {% if h.check_access('close_datarequest', {'id':datarequest_id }) and not c.datarequest.closed %} {% link_for _('Close'), controller='ckanext.datarequests.controllers.ui_controller:DataRequestsUI', action='close', id=datarequest_id, class_='btn btn-danger', icon='lock' %} {% endif %}

{% block page_heading %} {{c.datarequest.title}} {% endblock %}

{{ h.render_markdown(h.get_translated(c.datarequest, 'description')) }} {% snippet "datarequests/snippets/comments.html", comments=c.comments, datarequest=c.datarequest, errors=c.errors, errors_summary=c.errors_summary, updated_comment=c.updated_comment %} {% if h.check_access('comment_datarequest', {'id':c.datarequest.id }) %}

{{_('Add New Comment')}}:

{% set create_comment_error = c.updated_comment is defined and c.updated_comment.id == '' %} {% if create_comment_error %} {% endif %} {% snippet "datarequests/snippets/comment_form.html", datarequest=c.datarequest, errors=c.errors, errors_summary=c.errors_summary, offering=c.offering, initial_text=c.updated_comment.comment if create_comment_error, focus=create_comment_error, current_user=c.userobj %}
{% endif %}
{% block package_additional_info %}
{{ _('Released') }}: {{ h.odsh_render_datetime(c.datarequest.open_time) }}
{{ _('Suggester') }}: {{ c.datarequest.user['display_name'] if c.datarequest.user else _('None') }}
{#{{ h.time_ago_from_timestamp(c.datarequest.close_time) if c.datarequest.close_time else _('Not closed yet') }}#}
{{ _('Status') }}:
{% if c.datarequest.get('closed', False) %}
{% trans %}Done{% endtrans %}
{% else %}
{% trans %}Open{% endtrans %}
{% endif %}
{#{% if c.datarequest.closed %} {{ _('Accepted Dataset') }} {% if c.datarequest.accepted_dataset %} {% link_for c.datarequest.accepted_dataset['title'], controller='package', action='read', id=c.datarequest.accepted_dataset.get('id') %} {% else %} {{ _('None') }} {% endif %} {% endif %} #}
{{ h.get_comments_number(c.datarequest.get('id', '')) }}
{% endblock %}
{% endblock %}