Skip to content

Commit

Permalink
Merge pull request #11 from daitokai/isssue-7/twitter-widget
Browse files Browse the repository at this point in the history
とりあえず Twitter Widget 表示しとく #7
  • Loading branch information
LuckOfWise committed Dec 20, 2013
2 parents 726febd + 451b7ac commit a5b8255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/application/_twitter_widget.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<a class="twitter-timeline" href="https://twitter.com/search?q=%23daitokaiet" height="<%= height %>" width="<%= width %>" data-widget-id="413850982359912448">#daitokaiet に関するツイート</a>
<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>
3 changes: 3 additions & 0 deletions app/views/home/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
%p= link_to 'Github', 'https://github.com/daitokai/daitokaiet', class: 'btn btn-default'
- else
= link_to 'Twitterでログイン', user_omniauth_authorize_path(:twitter), class: 'btn btn-default'
.row
#twitter_widget.col-xs-12.col-sm-12.col-md-12.col-lg-12
= render 'twitter_widget', height: 400, width: 1200

0 comments on commit a5b8255

Please sign in to comment.