diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 0000000..1dc5416 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,8 @@ +--------- +Changelog +--------- + +v1.2.0-SNAPSHOT 2015-9-11 + +Features: + * added plugins for Internal and Public Catalog themes, where the odn_theme plugin is a common base diff --git a/README.md b/README.md index a6d44e1..d89b3ec 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Installation To enable plugin, change property in your production.ini: ``` -ckan.plugins = odn_theme odn_package_extras +ckan.plugins = odn_theme odn_theme_ic odn_theme_pc odn_package_extras # version displayed in header and About page (current version) ckan.odn_version = 1.0.2 diff --git a/ckanext/odn_theme/templates/base.html b/ckanext/odn_theme/templates/base.html index 0f92ec3..6117d30 100644 --- a/ckanext/odn_theme/templates/base.html +++ b/ckanext/odn_theme/templates/base.html @@ -2,12 +2,7 @@ {%- block custom_styles %} - - {%- if g.site_custom_css -%} - - {%- endif %} + {{ super() }} {% endblock %} {% block links -%} diff --git a/ckanext/odn_theme/templates/header.html b/ckanext/odn_theme/templates/header.html index 3121daf..9e54b29 100644 --- a/ckanext/odn_theme/templates/header.html +++ b/ckanext/odn_theme/templates/header.html @@ -16,44 +16,6 @@

{% endif %} {% endblock %} -{% block header_account_logged %} - {% if c.userobj.sysadmin %} -
  • - - - -
  • - {% endif %} -
  • - - {{ h.gravatar((c.userobj.email_hash if c and c.userobj else ''), size=22) }} - {{ h.user_display_name() }} - -
  • - {% set new_activities = h.new_activities() %} -
  • - {% set notifications_tooltip = ngettext('Dashboard (%(num)d new item)', 'Dashboard (%(num)d new items)', new_activities) %} - - - {{ new_activities }} - -
  • - {% block header_account_settings_link %} -
  • - - - -
  • - {% endblock %} - {% block header_account_log_out_link %} -
  • - - - -
  • - {% endblock %} -{% endblock %} - {% block header_site_navigation %}