Change Summary:
Screenshots added.
Review Request #1284 — Created Nov. 30, 2009 and discarded
Information | |
---|---|
trimbo | |
Review Board | |
Reviewers | |
reviewboard | |
This change allows other users to see when a colleague has started a review draft. A yellow DIV is automatically displayed at the top of a review to indicate that someone else is currently reviewing that change. Hussain Bohra should be listed as a contributor if this code is accepted. Thanks!
Tested on dev server against tip @ 47082a0 + diff.
reviewboard/htdocs/media/rb/css/reviews.css (Diff revision 1) |
---|
This should be in em, and will need to be tested with different font sizes, browser widths, and zoom levels. Not sure we really want to hard-code this though. We may want to stuff both banners inside of one container that's aligned to the very top instead.
reviewboard/reviews/views.py (Diff revision 1) |
---|
Should wrap to < 80 characters. Might want to split this into two lines. Also, should be a blank line before the following if statement. I don't know that we need to call list(). It's more efficient to just keep it an iterator as long as possible.
reviewboard/templates/reviews/reviewable_base.html (Diff revision 1) |
---|
Should be in alphabetical order.
reviewboard/templates/reviews/reviewable_base.html (Diff revision 1) |
---|
The "," should be right up against the preceeding username.
Could, but then we have a screen width issue. What I'd rather see is something in one of the bottom corners (say, the right, though we'll need to make sure it plays well with the update notifications). Something the size of a tooltip, perhaps, that just says "4 people are reviewing this change." or something. However, again, it may not be useful enough to persist on the screen. I'd like to know what other people think there. It could just be a small, thin banner sitting right above the review request box.
I like the new look. The padding should be more consistent with other boxes, but I think this looks much better.
The padding is now more consistent with the rest of reviewboard.
Diff: |
Revision 2 (+46 -10) |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Screenshots: |
|
Sorry for the delays in these. Busy time of the year. While most of this looks good, there's a lot of style changes made to existing code that I want reverted. Mainly lines that were removed for no reason. Also, lots of trailing whitespace. I'd like to see these fixed up before it goes in. Thanks!
reviewboard/reviews/views.py (Diff revision 2) |
---|
Should be inserted alphabetically in the list of variables. Should be "pending_reviews" though.
reviewboard/templates/reviews/review_detail.html (Diff revision 2) |
---|
Unnecessary change. Should revert this.
reviewboard/templates/reviews/review_header.html (Diff revision 2) |
---|
This is never dynamically shown. Instead of changing the visibility with CSS, just wrap the entire thing in an {% if %}
reviewboard/templates/reviews/review_header.html (Diff revision 2) |
---|
Bad combination of spaces and tabs. Also, the method for indenting tags should be: {% for review in pending_reviews %} {% if forloop..... %} ... {% endif %} {% endfor %}
reviewboard/templates/reviews/review_header.html (Diff revision 2) |
---|
{{review.user|user_displayname}}. No spaces.