Skip to content

Commit 757359a

Browse files
committed
Remove social_buttons_book partial and merge it into social_button one
1 parent e525423 commit 757359a

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
%ol{:style => "list-style: none; margin-top: 30px;"}
22
%li{:style => "display: inline-block; line-height: 11px; margin-left: -35px;"}
3-
.fb-like{"data-action" => "like", "data-href" => "#{full_url(yield(:url))}", "data-layout" => "button_count", "data-share" => "true", "data-show-faces" => "true"}
3+
.fb-like{"data-action" => "like", "data-href" => "#{full_url(yield(@url))}", "data-layout" => "button_count", "data-share" => "true", "data-show-faces" => "true"}
44
%li{:style => "display: inline-block;"}
5-
%a.twitter-share-button{"data-hashtags" => "CoderDojo", "data-lang" => "ja", "data-text" => "#{full_title(yield(:title))}", "data-url" => "#{full_url(yield(:url))}", "data-via" => "CoderDojoJapan", :href => "https://twitter.com/share", :width => "100"} Tweet
5+
%a.twitter-share-button{"data-hashtags" => "CoderDojo", "data-lang" => "ja", "data-text" => "#{full_title(yield(@title))}", "data-url" => "#{full_url(yield(@url))}", "data-via" => "CoderDojoJapan", :href => "https://twitter.com/share", :width => "100"} Tweet
66
:javascript
77
!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');
88
%li{:style => "display: inline-block;"}
9-
%a.hatena-bookmark-button{"data-hatena-bookmark-lang" => "ja", "data-hatena-bookmark-layout" => "basic", "data-hatena-bookmark-title" => "#{full_title(yield(:title))}", :href => "#{full_url(yield(:url))}", :title => "このエントリーをはてなブックマークに追加"}
9+
%a.hatena-bookmark-button{"data-hatena-bookmark-lang" => "ja", "data-hatena-bookmark-layout" => "basic", "data-hatena-bookmark-title" => "#{full_title(yield(@title))}", :href => "#{full_url(yield(@url))}", :title => "このエントリーをはてなブックマークに追加"}
1010
%img{:alt => "このエントリーをはてなブックマークに追加", :height => "20", :src => "https://b.st-hatena.com/images/entry-button/button-only@2x.png", :style => "border: none;", :width => "20"}/
1111
%script{:async => "async", :charset => "utf-8", :src => "https://b.st-hatena.com/js/bookmark_button.js", :type => "text/javascript"}
1212
%li{:style => "display: none;"}
13-
.line-it-button{"data-lang" => "ja", "data-type" => "line", "data-url" => "#{full_url(yield(:url))}" }
13+
.line-it-button{"data-lang" => "ja", "data-type" => "line", "data-url" => "#{full_url(yield(@url))}" }
1414
%script{ src: "https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js", async: "async", defer: "defer"}

app/views/shared/_social_buttons_book.html.haml

Lines changed: 0 additions & 23 deletions
This file was deleted.

app/views/sotechsha_overview_page/index.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
= content_tag(:p, truncate(scrivito_value(sts_post.abstract), :length => 250, :escape => false))
1010
= link_to("もっと見る", scrivito_path(sts_post), :class => "btn btn-warning btn-block")
1111
%hr/
12-
= render 'shared/social_buttons_book'
12+
= render 'shared/social_buttons'
1313
= render 'shared/sitemap_sotechsha'

0 commit comments

Comments
 (0)