Skip to content

Commit

Permalink
Merge pull request ckan#8310 from ckan/fix-datatables-view-no-size
Browse files Browse the repository at this point in the history
Fix syntax in jinja2 check
  • Loading branch information
kowh-ai authored Jul 1, 2024
2 parents 442b1bf + d3caeca commit 1a52dd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
{{- _('Metadata last updated') }}: {{ local_friendly_datetime(res.metadata_modified) }}

{{- _('Created') }}: {{ local_friendly_datetime(res.created) }}

{{- res.format or res.mimetype_inner or res.mimetype or _('unknown') -}} 
{%- if res.size && res.size|int != 0 -%}
{%- if res.size and res.size|int != 0 -%}
( {{ h.localize_filesize(res.size)}} )
{%- endif -%}
</div>
Expand Down

0 comments on commit 1a52dd3

Please sign in to comment.