diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-14 13:32:05 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-14 13:32:05 +0100 |
commit | 67afb5b145dd98ba92f653180d2b7ba470a59e37 (patch) | |
tree | 7626526188b7a2404074528bf98a86dd56d46521 /app/views/events | |
parent | 9efb838be2d4a1b28f1378074af1f44442a7114a (diff) | |
download | gitlab-ce-67afb5b145dd98ba92f653180d2b7ba470a59e37.tar.gz |
Make sure twitter widgets are loaded when rendered through turbolinks.
Diffstat (limited to 'app/views/events')
-rw-r--r-- | app/views/events/event/_created_project.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/events/event/_created_project.html.haml b/app/views/events/event/_created_project.html.haml index 551e0160530..3c7153d235f 100644 --- a/app/views/events/event/_created_project.html.haml +++ b/app/views/events/event/_created_project.html.haml @@ -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 |