Merge lp:~jcsackett/launchpad/add-member-648476 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Māris Fogels |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11766 |
Proposed branch: | lp:~jcsackett/launchpad/add-member-648476 |
Merge into: | lp:launchpad |
Diff against target: |
89 lines (+21/-8) 2 files modified
lib/lp/registry/browser/tests/team-views.txt (+16/-8) lib/lp/registry/templates/team-members.pt (+5/-0) |
To merge this branch: | bzr merge lp:~jcsackett/launchpad/add-member-648476 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Māris Fogels (community) | Approve | ||
Review via email: mp+38887@code.launchpad.net |
Commit message
Adds the "Add member" link to the block that displays in the member listing when there are no members; team owners should still have access to this link, regardless of membership status.
Description of the change
Summary
=======
The +members page doesn't show the +Add member button when there are no members of the team; since there can still be a teamowner and that teamowner should still have control (even if his membership is deactivated) the button should still be present, as it is in the overview page.
Proposed fix
============
Change the display conditions of the Add member link so it's always present for the team owner.
Preimplementation talk
=======
Spoke with Curtis Hovey.
Implementation details
=======
The conditions aren't actually the problem--the link is inside a block that displays when there are members. This branch simply adds it to the block that displays when there aren't members as well.
Tests
=====
bin/test -vvct team-views
Q&A
===
Create a team in launchpad.dev. Deactivate your membership (as the owner) and go to +members for the team. You should see the message saying there are no members, and below that an add member link.
Lint
====
make lint output:
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/