Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
07ad946e
Commit
07ad946e
authored
2 years ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Readded slave url correction
parent
4b2c9aaf
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!41
Version 2.0.0
,
!38
Merge py3 into dev
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/templates/package/snippets/resource_item.html
+2
-1
2 additions, 1 deletion
ckanext/odsh/templates/package/snippets/resource_item.html
with
2 additions
and
1 deletion
ckanext/odsh/templates/package/snippets/resource_item.html
+
2
−
1
View file @
07ad946e
{% set url_action = 'edit' if url_is_edit and can_edit else 'read' %}
{% set url_action = 'edit' if url_is_edit and can_edit else 'read' %}
{% set url = h.url_for(controller='resource', action=url_action, id=pkg.name, resource_id=res.id) %}
{% set url = h.url_for(controller='resource', action=url_action, id=pkg.name, resource_id=res.id) %}
{% set download = url %}
{# hack for correcting slave url if resource was uploaded #}
{% set download = h.odsh_public_resource_url(res) or url %}
{% set rtitle=h.resource_display_name(res) if res.name else ' '%}
{% set rtitle=h.resource_display_name(res) if res.name else ' '%}
{% set resource_size = h.tpsh_get_resource_size(res) %}
{% set resource_size = h.tpsh_get_resource_size(res) %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment