-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from qld-gov-au/QOLDEV-982-ckan-2.11
[QOLDEV-982] sync test config with other repos
- Loading branch information
Showing
11 changed files
with
122 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ set -e | |
. "${APP_DIR}"/bin/activate | ||
CLICK_ARGS="--yes" ckan_cli db clean | ||
ckan_cli db init | ||
ckan_cli db upgrade |
40 changes: 20 additions & 20 deletions
40
ckanext/publications_qld_theme/templates/package/group_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{% extends "package/read_base.html" %} | ||
{% import 'macros/form.html' as form %} | ||
{% ckan_extends %} | ||
|
||
{# Replace 'group' with 'category' #} | ||
|
||
{% set default_group_type = h.default_group_type('group') %} | ||
|
||
{% block primary_content_inner %} | ||
<h2 class="hide-heading">{{ _('Categories') }}</h2> | ||
<h2 class="hide-heading">{{ h.humanize_entity_type('group', default_group_type, 'page title') or _('Categories') }}</h2> | ||
|
||
{% if h.check_access('package_update', {'id':c.pkg_dict.id }) %} | ||
{% set groups = h.groups_available() %} | ||
{% if groups %} | ||
<form class="add-to-group" method="post"> | ||
<div class="form-group"> | ||
<select id="field-add_group" class="form-control" name="group_added"> | ||
{% for option in groups %} | ||
<option value="{{ option.id }}"> {{ option.display_name }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<button type="submit" class="btn btn-primary" title="{{ _('Associate this category with this dataset') }}">{{ _('Add to category') }}</button> | ||
</form> | ||
{% endif %} | ||
{% if group_dropdown %} | ||
<form class="add-to-group" method="post"> | ||
{{ h.csrf_input() }} | ||
<select id="field-add_group" name="group_added" data-module="autocomplete"> | ||
{% for option in group_dropdown %} | ||
<option value="{{ option[0] }}"> {{ option[1] }}</option> | ||
{% endfor %} | ||
</select> | ||
<button type="submit" class="btn btn-primary" title="{{ _('Associate this category with this dataset') }}">{{ _('Add to category') }}</button> | ||
</form> | ||
{% endif %} | ||
|
||
{% if c.pkg_dict.groups %} | ||
{% if pkg_dict.groups %} | ||
<form method="post"> | ||
{% snippet 'group/snippets/group_list.html', groups=c.pkg_dict.groups %} | ||
{{ h.csrf_input() }} | ||
{% snippet 'group/snippets/group_list.html', groups=pkg_dict.groups %} | ||
</form> | ||
{% else %} | ||
<p class="empty">{{ _('There are no categories associated with this dataset') }}</p> | ||
<p class="empty">{{ h.humanize_entity_type('group', default_group_type, 'no associated label') or _('There are no categories associated with this dataset') }}</p> | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters