Merge lp:~bac/launchpad/bug-671539 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11885 |
Proposed branch: | lp:~bac/launchpad/bug-671539 |
Merge into: | lp:launchpad |
Diff against target: |
143 lines (+35/-22) 3 files modified
lib/lp/code/browser/branchlisting.py (+3/-1) lib/lp/code/stories/branches/xx-person-branches.txt (+24/-7) lib/lp/code/templates/person-codesummary.pt (+8/-14) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-671539 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | code | Approve | |
Review via email: mp+40309@code.launchpad.net |
Commit message
Don't show 'registered branches' on a team's code page.
Description of the change
= Summary =
Don't show the number of branches registered by teams as it is nonsense.
== Proposed fix ==
Make the link disabled if the person is a team and make the template be
conditional based on the enabled property.
Also removed some extraneous conditions in the page template. Note at
the top 'menu' is used in a condition so it cannot be unset in the body
of the template.
Also changed the class on the <td>s for consistency of count alignment.
== Pre-implementation notes ==
None
== Implementation details ==
As above.
== Tests ==
bin/test -vvm lp.code xx-person-
== Demo and Q/A ==
Look at https:/
http://
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
Nice change. The only note I had for the code was that instead of saying
if not person.is_team:
enabled = True
else:
enabled = False
...(..., enabled=enabled)
it would probably be clearer to say
owner_is_individual = (not person.is_team) owner_is_ individual)
...(..., enabled=
I'm not entirely sure the underlining of that section of the story test should be "=" as opposed to "-," but since I don't like rest-style headings at all I'm probably talking nonsense.
Anyway: Approved, and keep 'em coming. :-)
Jeroen