Merge lp:~jcsackett/launchpad/code-configuration-652142 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11720 |
Proposed branch: | lp:~jcsackett/launchpad/code-configuration-652142 |
Merge into: | lp:launchpad |
Diff against target: |
154 lines (+52/-29) 4 files modified
lib/lp/code/browser/branchlisting.py (+6/-1) lib/lp/code/browser/tests/test_product.py (+21/-1) lib/lp/code/stories/branches/xx-product-branches.txt (+7/-12) lib/lp/code/templates/product-branch-summary.pt (+18/-15) |
To merge this branch: | bzr merge lp:~jcsackett/launchpad/code-configuration-652142 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonard Richardson (community) | Approve | ||
Review via email: mp+38015@code.launchpad.net |
Commit message
Fixes the message displayed to users on product code pages with no branches; previously users without configuration rights were told they could set things up when they couldn't.
Description of the change
Summary
=======
The bulleted list of steps to take for a product with no branches implies that
a user can configure branches/
whether or not they can.
This branch simply removes the messages about how to set up branches for the
product if the user doesn't have the permissions to configure code for the
product.
Proposed fix
============
Adds a can_configure_
filter the messages displayed to users, so users who can't configure things
aren't led to believe they can.
Implementation details
=======
As above.
Tests
=====
bin/test -m lp.code.
Demo and Q/A
============
If you go to code.launchpad.
<email address hidden>, you will see the bulleted list and a configuration
link.
If you logout and go to the same page, you will only see the message saying
that LP doesn't know where code is hosted, and that the product has no
branches.
Lint
====
make lint output:
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
44: Line has trailing whitespace.
The trailing whitespace is a space needed in the displayed text on the webpage.
Very clear.