Merge lp:~widelands-dev/widelands-website/deleted_user2 into lp:widelands-website
Status: | Merged |
---|---|
Merged at revision: | 516 |
Proposed branch: | lp:~widelands-dev/widelands-website/deleted_user2 |
Merge into: | lp:widelands-website |
Diff against target: |
209 lines (+43/-29) 12 files modified
mainpage/admin.py (+6/-1) pybb/templates/pybb/feeds/posts_description.html (+2/-5) pybb/templates/pybb/feeds/topics_description.html (+2/-5) settings.py (+0/-1) templates/search/includes/posts.html (+2/-1) templates/search/includes/topics.html (+2/-1) wiki/templates/wiki/feeds/history_description.html (+2/-5) wlprofile/admin.py (+1/-1) wlprofile/context_processors.py (+0/-6) wlprofile/templates/wlprofile/delete_me.html (+3/-2) wlprofile/templatetags/wlprofile_extras.py (+21/-0) wlprofile/views.py (+2/-1) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/deleted_user2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+361963@code.launchpad.net |
Commit message
Fix showing username in search results if user has deleted himself
Description of the change
Just stumbled over this during cleaning of users who had registered but never activated their account. So there are some more small changes:
- in admin/auth/user show if a user has deleted himself. So one can distinguish between inactive users and users who deleted them self (which are also inactive)
- show the deleted status also in admin/wlprofile
- added a new template filter 'user_status', which is used to either show DELETED_USERNAME or the real username. This makes some templates easier to use.
- this filter makes the context_processor in wlprofile superfluous
- use the filter in search results and other places
- fixed displaying smiley in delete_me page
LGTM :)