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

fix: Move toggle-more rows to bottom of resource table #420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ckanext/scheming/templates/scheming/package/resource_read.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@
<td>{% snippet "snippets/license.html", pkg_dict=pkg, text_only=True %}</td>
</tr>
{%- endblock -%}
{%- block resource_more_items -%}
{% for key, value in h.format_resource_items(res.items()) %}
{% if key not in ('created', 'metadata modified', 'last modified', 'format') %}
<tr class="toggle-more"><th scope="row">{{ key | capitalize }}</th><td>{{ value }}</td></tr>
{% endif %}
{% endfor %}
{%- endblock -%}
{%- block resource_fields -%}
{%- for field in schema.resource_fields -%}
{%- if field.field_name not in exclude_fields
Expand All @@ -81,6 +74,13 @@
{%- endif -%}
{%- endfor -%}
{%- endblock -%}
{%- block resource_more_items -%}
{% for key, value in h.format_resource_items(res.items()) %}
{% if key not in ('created', 'metadata modified', 'last modified', 'format') %}
<tr class="toggle-more"><th scope="row">{{ key | capitalize }}</th><td>{{ value }}</td></tr>
{% endif %}
{% endfor %}
{%- endblock -%}
</tbody>
</table>

Expand Down
Loading