Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckan.__version__ available as template helper #3103

merged 3 commits into from Jul 14, 2016


Copy link

@brew brew commented Jun 10, 2016

The BaseController in lib/ adds __version__ to c so it's available to the base.html template.

Instead of having this added to c, I suggest removing the line from and add a new template helper, ckan_version, that returns ckan.__version__, for use in templates.

Instead of adding the ckan version as a value on `c`, this commit adds a
new template helper that returns `ckan.__version__`.
Copy link

k-nut commented Jun 14, 2016

I'll update the changelog on this.

Copy link

k-nut commented Jul 4, 2016

@brew just created a new PR that wants to merge into this branch and updates the changelog with this new change.

Add information about moved helper to changelog
@amercader amercader merged commit ee9d2de into master Jul 14, 2016
@amercader amercader deleted the 3103-version-tmpl-helper branch July 14, 2016 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants