{% ckan_extends %} {# Handle either old Pylons-style global variables, or newer template parameters. #} {% if datarequest is not defined %} {% set datarequest = c.datarequest %} {% endif %} {% block title %}Data request {{datarequest.get('title', '')}}{% endblock %} {% block breadcrumb_content %} {% endblock %} {% block content_action %} {% if h.check_access('update_datarequest', {'id':datarequest_id }) %} {% link_for _('Manage'), named_route='datarequest.update', id=datarequest_id, class_='btn btn-default', icon='wrench' %} {% endif %} {% if h.check_access('close_datarequest', {'id':datarequest_id }) and not datarequest.closed %} {% link_for _('Close'), named_route='datarequest.close', id=datarequest_id, class_='btn btn-danger', icon='lock' %} {% endif %} {% if h.check_access('open_datarequest', {'id':datarequest_id }) and datarequest.closed %} {% link_for _('Re-open'), named_route='data_qld.open_datarequest', id=datarequest_id, class_='btn btn-success', icon='unlock' %} {% endif %} {% endblock %} {% block content_primary_nav %} {{ h.build_nav_icon('datarequest.show', _('Data request'), id=datarequest_id) }} {% if h.show_comments_tab() and h.ytp_comments_enabled() %} {{ h.build_nav_icon('datarequest.comment', _('Comments') + ' ' + h.get_content_type_comments_badge(datarequest_id, 'datarequest'), id=datarequest_id) }} {% endif %} {% endblock %}