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 @@ ...@@ -17,7 +17,6 @@
%a.twitter-share-button{ | %a.twitter-share-button{ |
href: "https://twitter.com/share", | href: "https://twitter.com/share", |
class: "twitter-share-button", |
"data-url" => event.project.web_url, | "data-url" => event.project.web_url, |
"data-text" => "I just created a new project in GitLab! GitLab is version control on your server.", | "data-text" => "I just created a new project in GitLab! GitLab is version control on your server.", |
"data-size" => "medium", | "data-size" => "medium", |
...@@ -25,4 +24,4 @@ ...@@ -25,4 +24,4 @@
"data-hashtags" => "gitlab", | "data-hashtags" => "gitlab", |
"data-count" => "none"} "data-count" => "none"}
Tweet 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> %script{src: "//platform.twitter.com/widgets.js"}
\ No newline at end of file \ 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