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.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+167 -18) |
-
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: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+156 -6) |
-
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