Merge lp:~bac/launchpad/bug-483607 into lp:launchpad
Proposed by
Brad Crittenden
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~bac/launchpad/bug-483607 |
Merge into: | lp:launchpad |
Diff against target: |
159 lines (+53/-21) 5 files modified
lib/lp/registry/browser/person.py (+4/-4) lib/lp/registry/browser/tests/person-views.txt (+28/-2) lib/lp/registry/stories/foaf/xx-person-home.txt (+9/-2) lib/lp/registry/stories/location/personlocation.txt (+2/-3) lib/lp/registry/templates/person-portlet-map.pt (+10/-10) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-483607 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+14925@code.launchpad.net |
Commit message
Only show the editlocation link and map to the person whose page is being viewed.
To post a comment you must log in.
= Summary =
On a person index page for a person with no location data set the
editlocation map is still shown though it should not be.
== Proposed fix ==
Only show the editlocation map if the logged in user is the same as page
being viewed.
Also change it so that the location portlet is not shown at all if there
is no location data to display.
== Pre-implementation notes ==
None.
== Implementation details ==
As above.
== Tests ==
bin/test -vvm lp.registry -t person-views.txt -t xx-person-home.txt -t
personlocation.txt
== Demo and Q/A ==
As mark go to https:/ /launchpad. dev/~bac and see no location data. Look
at other users and verify that the editlocation map is not shown and
that the location data only shows up if their location is set.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: registry/ browser/ tests/person- views.txt registry/ templates/ person- portlet- map.pt registry/ stories/ foaf/xx- person- home.txt registry/ stories/ location/ personlocation. txt registry/ browser/ person. py
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ registry/ browser/ person. py interface' (No module
117: [F0401] Unable to import 'lazr.delegates' (No module named
delegates)
118: [F0401] Unable to import 'lazr.config' (No module named config)
119: [F0401] Unable to import 'lazr.restful.
named restful)
230: [F0401] Unable to import 'lazr.uri' (No module named uri)