Skip to content

Commit

Permalink
Merge branch 'dataviewer-iframe' of github.com:okfn/ckan into datavie…
Browse files Browse the repository at this point in the history
…wer-iframe
  • Loading branch information
domoritz committed Sep 20, 2012
2 parents 20212ea + d6189db commit 54f94db
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions ckan/public/base/datapreview/resource.config
Expand Up @@ -28,6 +28,7 @@ datapreview =
vendor/recline/recline.js
datapreview.js

vendor/bootstrap/2.0.3/bootstrap.css
vendor/slickgrid/2.0.1/slick.grid.css
vendor/leaflet/0.4.4/leaflet.css

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions ckan/templates/base.html
Expand Up @@ -10,7 +10,6 @@
<!--[if gt IE 8]><!--> <html lang="{{ lang }}"> <!--<![endif]-->
{%- endblock -%}

{% resource g.main_css[6:] %}
{# Allows custom attributes to be added to the <head> tag #}
<head{% block headtag %}{% endblock %}>
{#
Expand Down Expand Up @@ -70,17 +69,21 @@
{% endblock %}
#}
{%- block styles %}
{% resource g.main_css[6:] %}
{% endblock %}

{# defined in the config.ini under "ckan.template_head_end" #}
{% block head_extras %}
{{ config.get('ckan.template_head_end', '') | safe }}
{% endblock %}
{%- if g.site_custom_css -%}
<style>
{{ g.site_custom_css | safe }}
</style>
{%- endif %}

{%- block custom_styles %}
{%- if g.site_custom_css -%}
<style>
{{ g.site_custom_css | safe }}
</style>
{%- endif %}
{% endblock %}
</head>

{# Allows custom attributes to be added to the <body> tag #}
Expand Down
8 changes: 8 additions & 0 deletions ckan/templates/package/resource_preview.html
Expand Up @@ -16,3 +16,11 @@
var preload_resource = {{ h.literal(c.resource_json) }};
</script>
{% endblock %}


{# remove any ckan styles #}
{% block styles %}
{% endblock %}

{% block custom_styles %}
{% endblock %}

0 comments on commit 54f94db

Please sign in to comment.