<apy:if="cache_url and not bool(h.get_resource_wms(c.resource))"class="btn btn-danger resource-url-analytics resource-type-${c.resource.get('resource_type')}"href="${cache_url}"onclick="${h.ga_download_tracking(c.resource, 'download-cache')}">
<apy:if="cache_url and not bool(h.get_resource_wms(c.resource))"class="btn btn-danger resource-url-analytics resource-type-${c.resource.get('resource_type')}"href="${cache_url}"onclick="${h.ga_download_tracking(c.resource, publisher.name, 'download-cache')}">
<divclass="download js-tooltip"data-placement="bottom"data-original-title="Cached by data.gov.uk on: ${cache_timestamp.strftime('%d/%m/%Y') if cache_timestamp else 'unknown'}">