Skip to content

Commit

Permalink
Merge branch 'canada-v2.10' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
JVickery-TBS committed Oct 30, 2024
2 parents 325ed11 + db020f3 commit 4c08ae1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/canada/templates/package/snippets/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<li class="nav-item justify-content-between position-relative {{ is_active }}">
<a class="resources-side-section-item-link" tabindex="{{ -1 if is_active else 0 }}" href="{{ 'javascript:void(0);' if is_active else url }}" title="{{ h.resource_display_name(resource) }}">{{ h.resource_display_name(resource)|truncate(45) }}</a>
{% if g.is_registry and can_edit and not is_activity_archive %}
{% set validation_badge = h.get_validation_badge(resource)|safe %}
<div class="dropdown position-absolute end-0 me-2">
<button class="btn btn-light btn-sm dropdown-toggle" type="button" id="dropdownRes{{ loop.index }}" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-wrench" aria-hidden="true"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownRes{{ loop.index }}">
Expand All @@ -24,6 +25,9 @@
<li>{% link_for _('DataStore'), named_route='xloader.resource_data', id=pkg.name, resource_id=resource.id, class_='dropdown-item', icon='cloud-upload' %}</li>
<li>{% link_for _('Data Dictionary'), named_route='datastore.dictionary', id=pkg.name, resource_id=resource.id, class_='dropdown-item', icon='code' %}</li>
{% endif %}
{% if validation_badge %}
<li>{% link_for _('Validation'), named_route='validation.read', id=pkg.name, resource_id=resource.id, class_='dropdown-item', icon='tasks' %}</li>
{% endif %}
<li>{% link_for _('Views'), named_route=pkg.type ~ '_resource.views', id=pkg.name, resource_id=resource.id, class_='dropdown-item', icon='chart-bar' %}</li>
<li>
<a class="dropdown-item text-danger" href="{{ h.url_for(pkg.type ~ '_resource.delete', id=pkg.name, resource_id=resource.id) }}" data-module="confirm-action" data-module-content="{{ _('Are you sure you want to delete this resource?') }}">
Expand Down

0 comments on commit 4c08ae1

Please sign in to comment.