HabitRPG/habitrpg — pull request #4236 by lefnire (2014-11-12 21:35:46+00:00)
Title: Share avatar

Adds ability to share your avatar on social networks. A "Share" button appears top-right when hovering over your avatar:

![screen shot 2014-11-12 at 2 29 51 pm](https://cloud.githubusercontent.com/assets/195202/5018984/8a601f46-6a78-11e4-8778-ff40e07da785.png)

It includes a download link which simply downloads an image of your avatar (rather, redirects to the s3 link from which you can download). When you click share on the social networks, the link will redirect to /static/front#?memberId=XXX which gives you a modal of the avatar:

![modal](http://i.gyazo.com/7f8f409f66da45913d768116304a3350.png)

There are a few missing bits, but most is there. TODO:

* [ ] When the user is logged into Addthis, it seems the [selected services](https://github.com/HabitRPG/habitrpg/compare/share-avatar?expand=1#diff-b15b92fe8a80bfe66aec828f1d8f71ceR50) aren't respected. This includes the Download link. IE, if they're logged in they see the Addthis's default batch of social links, minus the download link
* [ ] Some pieces on /static/front#?memberId=XXX are missing - pet count, memberSince, etc. This because those missing bits are in controllers/services from the main app which are too clunky to include into the static.js app. I've tried hand-selecting a few, but they're all so interdependent it causes issues. We can forgo those pieces for now.