[ckan-changes] [okfn/ckan] 45336e: [2347] Fixing up naming
GitHub
noreply at github.com
Fri May 4 10:14:52 UTC 2012
Branch: refs/heads/feature-2347-related-dashboard
Home: https://github.com/okfn/ckan
Commit: 45336e342fc1a0dd6a469d67c0438296a2dc6513
https://github.com/okfn/ckan/commit/45336e342fc1a0dd6a469d67c0438296a2dc6513
Author: Ross Jones <rossdjones at gmail.com>
Date: 2012-05-04 (Fri, 04 May 2012)
Changed paths:
M ckan/templates/package/layout.html
M doc/configuration.rst
Log Message:
-----------
[2347] Fixing up naming
diff --git a/ckan/templates/package/layout.html b/ckan/templates/package/layout.html
index 5ff630a..f196b37 100644
--- a/ckan/templates/package/layout.html
+++ b/ckan/templates/package/layout.html
@@ -34,7 +34,7 @@
</li>
</py:otherwise>
</py:choose>
- <li py:if="h.asbool(config.get('package_show_related', 'true'))" class="${'active' if c.action=='related' else ''}">${h.subnav_link(h.icon('package') + _('Related') + ' (%s)' % c.related_count, controller='related', action='list', id=c.pkg.name)}</li>
+ <li py:if="h.asbool(config.get('ckan.dataset.show_related', 'true'))" class="${'active' if c.action=='related' else ''}">${h.subnav_link(h.icon('package') + _('Related') + ' (%s)' % c.related_count, controller='related', action='list', id=c.pkg.name)}</li>
<py:if test="h.check_access('package_update',{'id':c.pkg.id})">
<li class="divider">|</li>
diff --git a/doc/configuration.rst b/doc/configuration.rst
index 523323c..ac2f45e 100644
--- a/doc/configuration.rst
+++ b/doc/configuration.rst
@@ -122,12 +122,12 @@ This sets a space-separated list of extra field key values which will not be sho
.. index::
single: rdf_packages
-package_show_related
-^^^^^^^^^^^^^^^^^^^^
+ckan.dataset.show_related
+^^^^^^^^^^^^^^^^^^^^^^^^^
-package_show_related::
+ckan.dataset.show_related::
- package_show_related = false
+ ckan.dataset.show_related = false
Default value: true
================================================================
More information about the ckan-changes
mailing list