Skip to content

Commit

Permalink
Fixes #2806
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfullerton committed Jun 29, 2017
1 parent 4261bf4 commit 3d565fd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ckan/templates/package/snippets/resource_view.html
Expand Up @@ -2,15 +2,23 @@

{% block resource_view %}
<div id="view-{{ resource_view['id'] }}" class="resource-view" data-id="{{ resource_view['id'] }}" data-title="{{ resource_view['title'] }}" data-description="{{ resource_view['descripion'] }}">
<a class="btn pull-right"
<div class="actions">
<a class="btn"
target="_blank"
href="{{ h.url_for('resource_view', id=package['name'], resource_id=resource['id'], view_id=resource_view['id'], qualified=True) }}">
<i class="fa fa-arrows-alt"></i>
{{ _("Fullscreen") }}
</a>
<a class="btn"
href="#embed-{{ resource_view['id'] }}"
data-module="resource-view-embed"
data-module-id="{{ resource_view['id'] }}"
data-module-url="{{ h.url_for('resource_view', id=package['name'], resource_id=resource['id'], view_id=resource_view['id'], qualified=True) }}">
<i class="fa fa-code"></i>
{{ _("Embed") }}
</a>
<p class="desc">{{ h.render_markdown(resource_view['description']) }}</p>
</div>
<p class="desc">{{ h.render_markdown(resource_view['description']) }}</p>
<div class="m-top ckanext-datapreview">
{% if not to_preview and h.resource_view_is_filterable(resource_view) %}
{% snippet 'package/snippets/resource_view_filters.html', resource=resource %}
Expand Down

0 comments on commit 3d565fd

Please sign in to comment.