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

hide redacted button and rename redacted #157

Merged
merged 1 commit into from
Jun 13, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions ckanext/datajson/templates_datajson/organization/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
{{ super() }}
{% if h.check_access('package_create', {'owner_org': c.group_dict.id}) %}
{% if h.datajson_inventory_links_enabled() %}
<button id="btnUnredacted" class="btn btn-secondary">Unredacted Inventory</button>
<button id="btnRedacted" class="btn btn-secondary">Redacted Inventory</button>
<button id="btnUnredacted" class="btn btn-secondary">Export data.json</button>
<button id="btnDraft" class="btn btn-secondary">Export Drafts</button>

<form id="formUnredacted" action="{{c.group_dict.id + '/unredacted.json' }}"></form>
<form id="formRedacted" action="{{c.group_dict.id + '/redacted.json' }}"></form>
<form id="formDraft" action="{{c.group_dict.id + '/draft.json' }}"></form>

<script type="text/javascript" src="/base/vendor/jquery.js"></script>
Expand All @@ -19,10 +17,6 @@
$('#formUnredacted').submit();
});

$('#btnRedacted').click(function () {
$('#formRedacted').submit();
});

$('#btnDraft').click(function () {
$('#formDraft').submit();
});
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

setup(
name='ckanext-datajson',
version='0.1.24',
description="CKAN extension to generate /data.json",
version='0.1.25',
description='CKAN extension to generate /data.json',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
Expand Down
Loading