Show account cards for external accounts on "linked accounts" screen and "link new account"

Summary: Ref T1536. These can probably use some design tweaking and there's a bit of a bug with profile images for some providers, but generally seems to be in the right ballpark.

Test Plan:
{F46604}

{F46605}

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Maniphest Tasks: T1536

Differential Revision: https://secure.phabricator.com/D6210
This commit is contained in:
epriestley
2013-06-17 07:08:50 -07:00
parent b040f889de
commit 7271547132
8 changed files with 166 additions and 2 deletions

View File

@@ -491,6 +491,12 @@ final class PhabricatorFile extends PhabricatorFileDAO
return (string) $uri;
}
public function getProfileThumbURI() {
$path = '/file/xform/thumb-profile/'.$this->getPHID().'/'
.$this->getSecretKey().'/';
return PhabricatorEnv::getCDNURI($path);
}
public function getThumb60x45URI() {
$path = '/file/xform/thumb-60x45/'.$this->getPHID().'/'
.$this->getSecretKey().'/';