diff --git a/ckanext/showcase/plugin.py b/ckanext/showcase/plugin.py index 443729fe..a64a77b1 100644 --- a/ckanext/showcase/plugin.py +++ b/ckanext/showcase/plugin.py @@ -40,7 +40,7 @@ class ShowcasePlugin(plugins.SingletonPlugin, lib_plugins.DefaultDatasetForm): def update_config(self, config): toolkit.add_template_directory(config, 'templates') - # toolkit.add_public_directory(config, 'public') + toolkit.add_public_directory(config, 'public') # toolkit.add_resource('fanstatic', 'showcase') # IConfigurable diff --git a/ckanext/showcase/public/ckanext_showcase.css b/ckanext/showcase/public/ckanext_showcase.css new file mode 100644 index 00000000..ea5e2acd --- /dev/null +++ b/ckanext/showcase/public/ckanext_showcase.css @@ -0,0 +1,25 @@ +/* Custom style rules for ckanext-showcase */ + +.context-info .module-content .smallest { + font-size: 13px; +} + +.context-info .module-content .info .btn { + margin-top: 18px; +} + +.actions { + top: 36px; +} + +.ckanext-showcase-image { + margin-bottom: 25px; +} + +.ckanext-showcase-notes { + margin-bottom: 25px; +} + +.ckanext-showcase-launch { + margin-bottom: 25px; +} diff --git a/ckanext/showcase/templates/showcase/edit_base.html b/ckanext/showcase/templates/showcase/edit_base.html index 886d93a7..83722ae1 100644 --- a/ckanext/showcase/templates/showcase/edit_base.html +++ b/ckanext/showcase/templates/showcase/edit_base.html @@ -29,5 +29,5 @@ {% endblock %} {% block secondary_content %} - {% snippet 'showcase/snippets/showcase_info.html', pkg=pkg %} + {#{% snippet 'showcase/snippets/showcase_info.html', pkg=pkg %}#} {% endblock %} diff --git a/ckanext/showcase/templates/showcase/read.html b/ckanext/showcase/templates/showcase/read.html index 13d16850..c2b5e511 100644 --- a/ckanext/showcase/templates/showcase/read.html +++ b/ckanext/showcase/templates/showcase/read.html @@ -1,22 +1,47 @@ -{% extends "showcase/read_base.html" %} +{% extends "page.html" %} {% set pkg = c.pkg_dict %} {% set name = pkg.title or pkg.name %} +{% block subtitle %}{{ pkg.title or pkg.name }} - {{ _('Showcases') }}{% endblock %} + +{% block styles %} + {{ super() }} + +{% endblock %} + +{% block links -%} + {{ super() }} + +{% endblock -%} + +{% block head_extras -%} + {{ super() }} + {% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %} + + +{% endblock -%} + +{% block breadcrumb_content_selected %} class="active"{% endblock %} + +{% block breadcrumb_content %} + {% set showcase = pkg.title or pkg.name %} +
URL: {{ pkg.url }}
+ {% endif %} {% block package_notes %} {% if pkg.showcase_notes_formatted %} - + +There are no Datasetes in this Showcase
+ {% endif %} +