{% if resource.datastore_active %}
  {% set loading_text = _('Loading...') %}
  {% set api_info_url = h.url_for(controller='ckanext.column_mapper.controller:CMController', action='home', id=resource.id) %}
  <a class="btn btn-success" href="{{ api_info_url }}" data-module="api-info" data-module-template="{{ api_info_url }}" data-loading-text="{{ loading_text }}"><i class="icon-table icon-large"></i> {{ _('Column Mapping') }}</a>
{% endif %}

Add column mapper button in resource view
Add column mapper button in resource view
