Skip to content

Commit

Permalink
[Fix][s] fixed list order for resources and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sneha-sharma12 committed Oct 12, 2023
1 parent aa8decc commit 5c01dc5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ckanext/ubdc/templates/package/snippets/resource_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

{% block resource_item_explore %}
{% if res['type'] and res['type'] == 'resource' %}
<div class="resource-button">
<a class="btn btn-primary" href="{{ res.url }}">
<i class="fa fa-eye"></i>
{{ _('View') }}
</a>
{% if can_edit %}
<a href="{{ h.url_for(pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id) }}" class="btn btn-primary">
<i class="fa fa-pencil-square-o"></i>
{{ _('Edit') }}
</a>
{% endif %}
</div>
{% else %}
<div class="resource-button">
<a class="btn btn-primary" href="{{ url }}">
{% if not is_activity_archive and res.has_views %}
Expand Down Expand Up @@ -29,18 +42,5 @@
</a>
{% endif %}
</div>
{% else %}
<div class="resource-button">
<a class="btn btn-primary" href="{{ res.url }}">
<i class="fa fa-eye"></i>
{{ _('View') }}
</a>
{% if can_edit %}
<a href="{{ h.url_for(pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id) }}" class="btn btn-primary">
<i class="fa fa-pencil-square-o"></i>
{{ _('Edit') }}
</a>
{% endif %}
</div>
{% endif %}
{% endblock %}

0 comments on commit 5c01dc5

Please sign in to comment.