Add extensibility to the user infobox.
Review Request #8078 — Created March 27, 2016 and submitted — Latest diff uploaded
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.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
reviewboard/extensions/hooks.py |
---|
reviewboard/extensions/tests.py |
---|
reviewboard/reviews/views.py |
---|
reviewboard/static/rb/css/common.less |
---|
reviewboard/templates/accounts/user_infobox.html |
---|