Skip to content
Snippets Groups Projects
Commit 516eb438 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Started with webassets

parent 46337e6d
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
File moved
odsh_base_script: # name of the asset
filters: rjsmin # preprocessor for files. Optional
output: ckanext-odsh/odsh_base.js # actual path, where the generated file will be stored
contents: # list of files that are included in the asset
- autocomplete.js
- odsh.js
odsh_base_style: # name of asset
output: ckanext-odsh/odsh_base.css # actual path, where generated file will be stored
contents: # list of files that are included into asset
- odsh.css
- odsh_header.css
- bootstrap-multiselect.css
tpsh_toggle_menu: # name of the asset
filters: rjsmin # preprocessor for files. Optional
output: ckanext-odsh/tpsh_toggle_menu.js # actual path, where the generated file will be stored
contents: # list of files that are included in the asset
- tpsh_toggle_menu.js
# odsh_dataset_map_script: # name of the asset
# filters: rjsmin # preprocessor for files. Optional
# output: ckanext-odsh/odsh_dataset_map.js # actual path, where the generated file will be stored
# contents: # list of files that are included in the asset
# - vendor/leaflet.js
# - vendor/proj4-compressed.js
# - vendor/proj4leaflet.js
# - common_map.js
# - odsh_dataset_map.js
# odsh_dataset_map_style: # name of asset
# output: ckanext-odsh/odsh_dataset_map.css # actual path, where generated file will be stored
# contents: # list of files that are included into asset
# - leaflet.css
# - dataset_map.css
# odsh_spatial_query_script: # name of the asset
# filters: rjsmin # preprocessor for files. Optional
# output: ckanext-odsh/odsh_spatial_query.js # actual path, where the generated file will be stored
# contents: # list of files that are included in the asset
# - vendor/leaflet.js
# - vendor/proj4-compressed.js
# - vendor/proj4leaflet.js
# - vendor/vendor/leaflet.draw.js
# - common_map.js
# - odsh_spatial_query.js
# odsh_spatial_query_style: # name of asset
# output: ckanext-odsh/odsh_spatial_query.css # actual path, where generated file will be stored
# contents: # list of files that are included into asset
# - leaflet.css
# - leaflet.draw.css
# - spatial_query.css
# autocomplete_script: # name of the asset
# filters: rjsmin # preprocessor for files. Optional
# output: ckanext-odsh/autocomplete.js # actual path, where the generated file will be stored
# contents: # list of files that are included in the asset
# - vendor/jquery-ui-autocomplete/jquery-ui.js
# - autocomplete.js
# autocomplete_style: # name of asset
# output: ckanext-odsh/autocomplete.css # actual path, where generated file will be stored
# contents: # list of files that are included into asset
# - vendor/jquery-ui-autocomplete/jquery-ui.css
# - vendor/jquery-ui-autocomplete/jquery-ui.structure.css
# - vendor/jquery-ui-autocomplete/jquery-ui.theme.css
# - autocomplete.css
# odsh_all_script: # name of the asset
# filters: rjsmin # preprocessor for files. Optional
# output: ckanext-odsh/odsh_all.js # actual path, where the generated file will be stored
# contents: # list of files that are included in the asset
# - autocomplete.js
# - bootstrap-datepicker.js
# - bootstrap-multiselect.js
# - common_map.js
# - moment.js
# - odsh_dataset_map.js
# - odsh_datepicker.js
# - odsh_form.js
# - odsh_guessformat.js
# - odsh_image-upload.js
# - odsh.js
# - odsh_map.js
# - odsh_popover.js
# - odsh_populate_tags.js
# - odsh_spatial_query.js
# - tpsh_toggle_menu.js
# - tpsh_validate_password.js
# - vendor/jquery-ui-autocomplete/jquery-ui.js
# - vendor/leaflet.draw.js
# - vendor/leaflet.js
# - vendor/proj4-compressed.js
# - vendor/proj4leaflet.js
# odsh_all_style: # name of asset
# output: ckanext-odsh/odsh_all.css # actual path, where generated file will be stored
# contents: # list of files that are included into asset
# - autocomplete.css
# - dataset_map.css
# - datepicker.css
# - leaflet.css
# - leaflet.draw.css
# - spatial_query.css
# - vendor/jquery-ui-autocomplete/jquery-ui.css
# - vendor/jquery-ui-autocomplete/jquery-ui.structure.css
# - vendor/jquery-ui-autocomplete/jquery-ui.theme.css
This diff is collapsed.
{% ckan_extends %}
{% block scripts %}
{{ super() }}
{% asset 'ckanext-odsh/odsh_base_script' %}
{% endblock scripts %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="/odsh.css?refresh={{ range(1,10000) | random }}" />
<link rel="stylesheet" href="/odsh_header.css?refresh={{ range(1,10000) | random }}" />
<link rel="stylesheet" href="/bootstrap-multiselect.css" />
{% endblock %}
{% asset 'ckanext-odsh/odsh_base_style' %}
{% endblock styles %}
{% block head_extras %}
{{ super() }}
......
{% block scripts %}
{{ super() }}
{% asset 'ckanext-odsh/tpsh_toggle_menu' %}
{% endblock scripts %}
{% block header_wrapper %}
{% block header_account %}
<header class="navbar navbar-static-top masthead">
......@@ -54,6 +59,7 @@
<a href="/harvest">Harvester</a>
</li>
<li class='{{clazz}}'>
{% link_for _('Upload'), controller='dataset', action='new', group=c.group_dict.id, class_='text' %}
</li>
{% endif %}
{% if c.userobj %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment