Skip to content

Commit

Permalink
[#2873] Use resource.url as raw_resource_url
Browse files Browse the repository at this point in the history
`resource_view` template uses raw_resouce_url in order to create
download link if resource can't be displayed, but this variable is not
passed into snippet. To make that simpler, use resource.url property
for download button.

Conflicts:
	ckan/templates/package/snippets/resource_view.html
  • Loading branch information
smotornyuk authored and amercader committed Mar 29, 2016
1 parent e760891 commit 6bba236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/package/snippets/resource_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</p>
<p id="data-view-error" class="collapse"></p>
<p>
<a href="{{ raw_resource_url }}" class="btn btn-large resource-url-analytics" target="_blank">
<a href="{{ resource.url }}" class="btn btn-large resource-url-analytics" target="_blank">
<i class="icon-large icon-download"></i>
{{ _('Download resource') }}
</a>
Expand Down

0 comments on commit 6bba236

Please sign in to comment.