Merge lp:~canonical-ca-hackers/ubuntu-webcatalog/938223-share-applications into lp:ubuntu-webcatalog
Proposed by
Łukasz Czyżykowski
Status: | Merged |
---|---|
Approved by: | Anthony Lenton |
Approved revision: | no longer in the source branch. |
Merged at revision: | 70 |
Proposed branch: | lp:~canonical-ca-hackers/ubuntu-webcatalog/938223-share-applications |
Merge into: | lp:ubuntu-webcatalog |
Diff against target: |
219 lines (+95/-19) 7 files modified
src/webcatalog/static/css/webcatalog.css (+20/-6) src/webcatalog/templates/webcatalog/application_detail.html (+22/-12) src/webcatalog/templates/webcatalog/facebook_share_snippet.html (+10/-0) src/webcatalog/templates/webcatalog/googleplus_share_snippet.html (+8/-0) src/webcatalog/templates/webcatalog/twitter_share_snippet.html (+2/-0) src/webcatalog/tests/test_views.py (+31/-1) src/webcatalog/views.py (+2/-0) |
To merge this branch: | bzr merge lp:~canonical-ca-hackers/ubuntu-webcatalog/938223-share-applications |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Anthony Lenton | Pending | ||
Review via email: mp+96607@code.launchpad.net |
Commit message
Added sharing to Twitter, Google Plus and Facebook.
Description of the change
Overview
========
This branch adds three "Share" buttons to application_detail page. Those are Twitter, Facebbok and Google +1.
Details
=======
I wasn't able to figure out a way of making a mechanism to add a new one easy, as those are quite specific. At least Twitter one is. Other two only require a static html snippet to be added, but still, that's not a single line.
Currently, when running locally, Twitter share will not include an url, because JavaScript Twitter code filters out localhost urls, I guess to prevent flooding it with in-development links.
To post a comment you must log in.