{% ckan_extends %}

{% block action_manage_inner %}
  {{ super() }}
  {% if h.is_resource_supported_by_xloader(res) %}
    <li>{% link_for _('DataStore'), named_route='xloader.resource_data', id=pkg.name, resource_id=res.id, class_='btn btn-light', icon='cloud-upload' %}</li>
  {% endif %}
{% endblock %}

{% block resource_actions_inner %}
  {% if h.check_ckan_version(max_version='2.10') and h.is_resource_supported_by_xloader(res) %}
    <li>{% link_for _('DataStore'), named_route='xloader.resource_data', id=pkg.name, resource_id=res.id, class_='btn btn-light', icon='cloud-upload' %}</li>
  {% endif %}
  {{ super() }}
{% endblock %}
