Fixes the blank space visible in the infobox when avatars are disabled.
Review Request #10160 — Created Sept. 21, 2018 and submitted
Information | |
---|---|
Sudolicious | |
Review Board | |
release-4.0.x | |
4738 | |
7130f52... | |
Reviewers | |
reviewboard, students | |
When avatars are disabled a blank space was visible on the infobox
where the avatar should be.The code before checked if the avatar service was enabled and would
then make a request to gravatar. Now the code will check if avatar
services are enabled and if there is an avatar set.
If the services are disabled you will there will be no space
for an avatar. Otherwise, you will see a default avatar.
Python and JavaScript tests were passed.
Tested inside of Firefox and Chrome in 2 scenarios
1. Enabling avatars
2. Disabling avatars
Description | From | Last Updated |
---|---|---|
Please see screenshot number 3 below Thanks for supplying screenshots! That really clears up what the end user experience will … |
|
|
Can you update the summary to use proper capitalization? ("the infobox" -> "The infobox"). |
|
|
Please put the associated bug number into the "Bugs" field. |
|
|
Please wrap your description to 72 columns (this gets turned into the commit message) |
|
|
Can you write your commit summary in the imperitive mood, i.e., as if it were a command. The following sentence … |
|
|
Please undo all the indentation changes your editor auto-"fixed". |
|
|
I think we have a convention of keeping the template tags that open on a newline unindented, but indenting the … |
|
Status: Re-opened
Description: |
|
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
|||||||||||||||
Commit: |
|
|||||||||||||||
Diff: |
Revision 1 (+54 -47) |
|||||||||||||||
Added Files: |
Checks run (2 succeeded)
-
-
Please see screenshot number 3 below
Thanks for supplying screenshots! That really clears up what the end user experience will be like.
However, we use the Description and Testing Done sections to construct the final commit messages, and the commit will not include those screenshots. Can you please remove the reference to screenshots (since it won't be available in the commit message)?
-
reviewboard/templates/accounts/user_infobox.html (Diff revision 1) I think we have a convention of keeping the template tags that open on a newline unindented, but indenting the internal bits. So I think we prefer:
{% if foo %} {% if bar %} {% endif %} {% endif %}
instead of:
{% if foo %} {% if bar %} {% endif %} {% endif %}
So can you please reformat this file to the original indentation style?
Summary: |
|
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||
Bugs: |
|
Description: |
|
---|
-
-
Can you write your commit summary in the imperitive mood, i.e., as if it were a command.
The following sentence should make sense if you substitute your summary in:
"This patch will <summary>"
-
reviewboard/templates/accounts/user_infobox.html (Diff revision 1) Please undo all the indentation changes your editor auto-"fixed".
Change Summary:
Fixes the spacing that my editor 'auot-fixed'
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+8 -2) |