Skip to content

Commit

Permalink
Merge pull request #157 from GSA/update-download-json
Browse files Browse the repository at this point in the history
hide redacted button and rename redacted
  • Loading branch information
FuhuXia committed Jun 13, 2024
2 parents 7e64b7d + e72027e commit 3506258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
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

0 comments on commit 3506258

Please sign in to comment.