Merge lp:~jcsackett/launchpad/no-write-sharing-lies into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Curtis Hovey | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 15785 | ||||
Proposed branch: | lp:~jcsackett/launchpad/no-write-sharing-lies | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
50 lines (+16/-1) 3 files modified
lib/canonical/launchpad/icing/css/forms.css (+6/-0) lib/lp/app/javascript/choiceedit/choiceedit.js (+4/-0) lib/lp/app/javascript/choiceedit/tests/test_choiceedit.js (+6/-1) |
||||
To merge this branch: | bzr merge lp:~jcsackett/launchpad/no-write-sharing-lies | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+118800@code.launchpad.net |
Commit message
Sets correct css on choicesource html when clickable_content is false, so the content is not styled as clickable.
Description of the change
Summary
=======
We can make +sharing read-only via flags, but the choicesource remains a
clickable item -- it sets the cursor and text-decoration as a link, but
doesn't do anything when clicked.
ChoiceSource has a clickable_content attribute--when false, the content
should not be styled as though it is clickable.
Preimp
======
Spoke with Curtis Hovey.
Implementation
==============
A new css class for the choicesource is added -- no-click. It's not named
yui3-choicesour
It sets cursor to default and text decoration to none on hover.
On init in choicesource, if clickable_content is false, no-click is added to
the contentBox's classes.
Tests
=====
bin/test -t choiceedit --layer=YUI
QA
==
Make sure that the choicesources on +sharing aren't clickable when the
writable flag is off.
LoC
===
This is part of disclosure.
Lint
====
Checking for conflicts and issues in changed files.
Linting changed files:
lib/canonical
lib/lp/
lib/lp/
./lib/canonical
< ... snip ... >
There are a bunch of errors in forms.css, but it's not a file I want to
reformat. I assume if every line lints wrongly the same way, there's a reason.
I don't think this branch is complete. As a driver of a project, I can see who the project shares with, but I cannot edit.
I see this in lib/lp/ registry/ javascript/ sharing/ granteetable. js at line 244: 'write_ enabled' );
clickable_ content: clickable_content,
var clickable_content = this.get(
var permission_edit = new Y.ChoiceSource({
I think a drivers will see the clickable content even though they do not have the permission to make a change.
/me checks
Well I think I found another bug. As a driver, I cannot see the +sharing link or access the page :( This undermines a lot of Canonical projects.