From 96adb6dae67b0f8d496dae51ff375b9db14d7e0f Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Tue, 20 Oct 2015 12:16:45 +0200 Subject: [PATCH] Use non-tracking social buttons --- app/views/asciicasts/_share.html.slim | 2 +- app/views/pages/contributing.html.slim | 5 +- app/views/shared/_add_this.html.erb | 10 --- app/views/shared/_social_buttons.html.erb | 88 +++++++++++++++++++++++ 4 files changed, 91 insertions(+), 14 deletions(-) delete mode 100644 app/views/shared/_add_this.html.erb create mode 100644 app/views/shared/_social_buttons.html.erb diff --git a/app/views/asciicasts/_share.html.slim b/app/views/asciicasts/_share.html.slim index d12ae2b..934b2be 100644 --- a/app/views/asciicasts/_share.html.slim +++ b/app/views/asciicasts/_share.html.slim @@ -24,7 +24,7 @@ .col-md-6 h2 Social div - = render 'shared/add_this', title: page.asciicast_title, url: asciicast_url(page.asciicast), big: true + = render 'shared/social_buttons', title: page.asciicast_title, url: asciicast_url(page.asciicast) h2 Embed image link p Use snippets below to display a screenshot linking to this recording. Useful in places where scripts are not allowed (e.g. in a project's README file). diff --git a/app/views/pages/contributing.html.slim b/app/views/pages/contributing.html.slim index d9d0d18..2bcf5d9 100644 --- a/app/views/pages/contributing.html.slim +++ b/app/views/pages/contributing.html.slim @@ -122,10 +122,9 @@ a href="https://twitter.com/asciinema" @asciinema ' on Twitter btw. - = render 'shared/add_this', + = render 'shared/social_buttons', url: root_url, - title: 'asciinema - Record and share your terminal sessions, the right way', - big: true + title: 'asciinema - Record and share your terminal sessions, the right way' .col-md-4 h2 Contribute by: diff --git a/app/views/shared/_add_this.html.erb b/app/views/shared/_add_this.html.erb deleted file mode 100644 index fb1619b..0000000 --- a/app/views/shared/_add_this.html.erb +++ /dev/null @@ -1,10 +0,0 @@ - -
- - - - - -
- - diff --git a/app/views/shared/_social_buttons.html.erb b/app/views/shared/_social_buttons.html.erb new file mode 100644 index 0000000..d0d9eb5 --- /dev/null +++ b/app/views/shared/_social_buttons.html.erb @@ -0,0 +1,88 @@ + + + + +
+
+
+
+
+
+
+
+
+
+
+
+