Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass package type through to resource creation activity item #8050

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/8034.bugfix
@@ -0,0 +1 @@
Pass custom package types through to the 'new resource' activity item
Expand Up @@ -4,7 +4,7 @@
<ul>
{% for change in changes %}
{% snippet "snippets/changes/{}.html".format(
change.type), change=change %}
change.type), change=change, pkg_dict=pkg_dict %}
<br>
{% endfor %}
</ul>
@@ -1,4 +1,4 @@
{% set dataset_type = request.view_args.package_type or 'dataset' %}
{% set dataset_type = request.view_args.package_type or pkg_dict['type'] or 'dataset' %}
{% set pkg_url = h.url_for(dataset_type ~ '.read', id=change.pkg_id) %}
{% set resource_url = h.url_for(dataset_type ~ '_resource.read', id=change.pkg_id, resource_id = change.resource_id, qualified=True) %}

Expand Down