forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #243 from AuScope/master
Merging master into dev-data
- Loading branch information
Showing
88 changed files
with
22,014 additions
and
418 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ local/* | |
.vscode/ | ||
.env.dev | ||
*kill* | ||
|
||
.env.local | ||
|
||
__pycache__/ |
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,6 +1,13 @@ | ||
FROM ckan/ckan-base:2.10.1 | ||
#FROM ckan/ckan-base:2.9.9 | ||
|
||
ARG BRANCH_NAME | ||
ARG COMMIT_SHA | ||
|
||
LABEL branch="$BRANCH_NAME" | ||
LABEL commit_sha="$COMMIT_SHA" | ||
|
||
|
||
# Set up environment variables | ||
ENV APP_DIR=/srv/app | ||
ENV TZ=UTC | ||
|
@@ -36,10 +43,6 @@ RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \ | |
### Pages ### | ||
#RUN pip3 install -e git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages | ||
|
||
### DCAT ### | ||
#RUN pip3 install -e git+https://github.com/ckan/[email protected]#egg=ckanext-dcat && \ | ||
# pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt | ||
|
||
### Spatial extension ### | ||
RUN apk add python3-dev libxml2-dev libxslt-dev geos geos-dev proj proj-dev proj-util py3-shapely | ||
RUN pip install --upgrade pip | ||
|
@@ -71,6 +74,10 @@ RUN pip install -e "git+https://github.com/EnviDat/ckanext-composite.git#egg=cka | |
### Zip preview ### | ||
RUN pip install -e "git+https://github.com/AuScope/ckanext-zippreview.git@master#egg=ckanext-zippreview" | ||
|
||
### DCAT plugins ### | ||
RUN pip install -r "https://raw.githubusercontent.com/ckan/ckanext-dcat/master/requirements.txt" | ||
RUN pip install -e "git+https://github.com/AuScope/ckanext-dcat.git@auscope_customise#egg=ckanext-dcat" | ||
|
||
# Clone the extension(s) your are writing for your own project in the `src` folder | ||
# to get them mounted in this image at runtime | ||
|
||
|
@@ -100,7 +107,8 @@ COPY src/shared/templates /shared/templates | |
|
||
RUN pip install $APP_DIR/src_extensions/ckanext-oidc-pkce && \ | ||
pip install $APP_DIR/src_extensions/ckanext-auscope-theme && \ | ||
pip install $APP_DIR/src_extensions/ckanext-igsn-theme | ||
pip install $APP_DIR/src_extensions/ckanext-igsn-theme && \ | ||
pip install pandas openpyxl requests python-multipart | ||
|
||
RUN chmod +x ${APP_DIR}/start_ckan.sh | ||
# RUN chmod +x ${APP_DIR}/start_ckan_development.sh | ||
|
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 |
---|---|---|
|
@@ -37,10 +37,6 @@ RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \ | |
### Pages ### | ||
#RUN pip3 install -e git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages | ||
|
||
### DCAT ### | ||
#RUN pip3 install -e git+https://github.com/ckan/[email protected]#egg=ckanext-dcat && \ | ||
# pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt | ||
|
||
### Spatial extension ### | ||
RUN apk add python3-dev libxml2-dev libxslt-dev geos geos-dev proj proj-dev proj-util py3-shapely | ||
RUN pip install --upgrade pip | ||
|
@@ -73,6 +69,10 @@ RUN pip install -e "git+https://github.com/EnviDat/ckanext-composite.git#egg=cka | |
RUN pip install -e "git+https://github.com/AuScope/ckanext-zippreview.git@master#egg=ckanext-zippreview" | ||
|
||
|
||
### DCAT plugins - used for exposing schema.org descriptions to search engines ### | ||
RUN pip install -r "https://raw.githubusercontent.com/ckan/ckanext-dcat/master/requirements.txt" | ||
RUN pip install -e "git+https://github.com/AuScope/ckanext-dcat.git@auscope_customise#egg=ckanext-dcat" | ||
|
||
# Clone the extension(s) your are writing for your own project in the `src` folder | ||
# to get them mounted in this image at runtime | ||
|
||
|
@@ -101,7 +101,8 @@ COPY src/shared/templates /shared/templates | |
# RUN pip install $APP_DIR/src_extensions/ckanext-oidc-pkce | ||
|
||
RUN pip install $APP_DIR/src_extensions/ckanext-oidc-pkce && \ | ||
pip install $APP_DIR/src_extensions/ckanext-auscope-theme && \ | ||
pip install $APP_DIR/src_extensions/ckanext-igsn-theme | ||
pip install -e $APP_DIR/src_extensions/ckanext-auscope-theme && \ | ||
pip install -e $APP_DIR/src_extensions/ckanext-igsn-theme && \ | ||
pip install pandas openpyxl requests python-multipart | ||
|
||
RUN chmod +x ${APP_DIR}/start_ckan_development.sh |
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,4 +1,4 @@ | ||
[bumpversion] | ||
current_version = 0.2.11 | ||
current_version = 0.2.13 | ||
commit = True | ||
tag = True |
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
30 changes: 30 additions & 0 deletions
30
ckan/src/ckanext-auscope-theme/ckanext/auscope_theme/templates/snippets/facet_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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% ckan_extends %} | ||
|
||
{% block facet_list %} | ||
{% set hide_empty = hide_empty or false %} | ||
{% with items = items or h.get_facet_items_dict(name, search_facets) %} | ||
{% if items or not hide_empty %} | ||
{% if name not in ['organization', 'groups' , 'license_id'] %} | ||
{% block facet_list_item %} | ||
<section class="module module-narrow module-shallow"> | ||
{% block facet_list_heading %} | ||
<h2 class="module-heading"> | ||
<i class="fa fa-filter"></i> | ||
{% if name == 'tags' %} | ||
Keywords | ||
{% else %} | ||
{{ title }} | ||
{% endif %} | ||
</h2> | ||
{% endblock %} | ||
|
||
{% block facet_list_items %} | ||
{{ super() }} | ||
{% endblock %} | ||
|
||
</section> | ||
{% endblock %} | ||
{% endif %} | ||
{% endif %} | ||
{% endwith %} | ||
{% endblock %} |
56 changes: 48 additions & 8 deletions
56
ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/assets/css/igsn_theme.css
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,8 +1,48 @@ | ||
/* | ||
NOTE: | ||
The following styles are for testing purposes only. | ||
Please insert the actual CSS styles for the igsn-theme extension below this comment block. | ||
*/ | ||
.media-overlay .media-heading { | ||
background-color: #282572; | ||
} | ||
|
||
.stages { | ||
margin: 0; | ||
list-style: none; | ||
color: #aeaeae; | ||
counter-reset: none; | ||
overflow: hidden; | ||
margin-bottom: 1.5rem; | ||
padding: 0; | ||
} | ||
|
||
.stages::after { | ||
display: block; | ||
clear: both; | ||
content: ""; | ||
} | ||
|
||
.stages li::before { | ||
display: block; | ||
clear: both; | ||
content: ""; | ||
|
||
} | ||
.stages li { | ||
line-height: 27px; | ||
counter-increment: none; | ||
width: 100%; | ||
background-color: transparent; | ||
float: left; | ||
padding: 10px 20px; | ||
position: relative; | ||
z-index: 0; | ||
} | ||
|
||
.badge { | ||
display: inline-block; | ||
padding: 0.25em 0.6em; | ||
font-size: 75%; | ||
font-weight: 700; | ||
line-height: 1; | ||
text-align: center; | ||
white-space: nowrap; | ||
vertical-align: baseline; | ||
border-radius: 0.375rem; | ||
background-color: #2e2b8a; /* Primary blue */ | ||
color: white; /* Text color */ | ||
margin-right: 5px; /* Space between badges */ | ||
} |
Oops, something went wrong.