[ckan-changes] [okfn/ckan] 014e5d: [#2304] Small user controller refactoring
GitHub
noreply at github.com
Wed May 9 13:31:15 UTC 2012
Branch: refs/heads/feature-2304-follow
Home: https://github.com/okfn/ckan
Commit: 014e5de73a3c5762d55636255f4aa812bb95d3f3
https://github.com/okfn/ckan/commit/014e5de73a3c5762d55636255f4aa812bb95d3f3
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-05-09 (Wed, 09 May 2012)
Changed paths:
M ckan/controllers/user.py
M ckan/templates/user/layout.html
Log Message:
-----------
[#2304] Small user controller refactoring
Move initialisation of a few more template variables into
_setup_template_variables(), and change read(), edit(), and followers()
to use it. This removes some code duplication and fixes issues with the
followers count and follow button not being initialisd on all user
controller pages.
Change new() to _not_ use _setup_template_variables() as it only needs
c.is_sysadmin and not the rest.
Also fix templates/user/layout.html so that the Followers tab appears on
both your own user page (when logged in) and on other user's pages.
More information about the ckan-changes
mailing list