Commit 67afb5b1 authored by Douwe Maan's avatar Douwe Maan

Make sure twitter widgets are loaded when rendered through turbolinks.

parent 9efb838b
......@@ -17,7 +17,6 @@
%a.twitter-share-button{ |
href: "https://twitter.com/share", |
class: "twitter-share-button", |
"data-url" => event.project.web_url, |
"data-text" => "I just created a new project in GitLab! GitLab is version control on your server.", |
"data-size" => "medium", |
......@@ -25,4 +24,4 @@
"data-hashtags" => "gitlab", |
"data-count" => "none"}
Tweet
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
\ No newline at end of file
%script{src: "//platform.twitter.com/widgets.js"}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment