Add extensibility to the user infobox.
Review Request #8078 — Created March 27, 2016 and submitted
This change adds a new extension hook, the UserInfoBoxHook, which allows
extensions to inject additional data into the infobox. This is shown in a new
panel below the existing information, so it doesn't screw up the existing
layout.This also fixes up a couple bugs in my earlier redesign change that emerged as
I tested it with this.
- Built a simple extension which lists a count of the users' incoming and
outgoing review requests in the infobox and saw the correct results. - Ran unit tests.
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Ignored Files: reviewboard/static/rb/css/common.less reviewboard/templates/accounts/user_infobox.html Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Ignored Files: reviewboard/static/rb/css/common.less reviewboard/templates/accounts/user_infobox.html
-
- Change Summary:
-
Update on top of latest infobox change.
- Commit:
-
e83ae125661ca3fe4de310448aefc69ab49153d911ba7558873f50a648ad4aab3a68c49407d206b3
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Ignored Files: reviewboard/static/rb/css/common.less reviewboard/templates/accounts/user_infobox.html Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Ignored Files: reviewboard/static/rb/css/common.less reviewboard/templates/accounts/user_infobox.html