diff options
author | re4k <re4k@re4k.info> | 2013-03-28 15:38:20 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-03-28 15:38:20 +0900 |
commit | 61087e2460e60b08b554b600cdebc6efb2456dd6 (patch) | |
tree | 50c9288ae16e0a1934f071ceb4c70a75121445ef /app/views | |
parent | 295db76b7643868456eafb98cf760a5e383b41ed (diff) | |
download | aclog-61087e2460e60b08b554b600cdebc6efb2456dd6.tar.gz |
Add Twitter Web Intents
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/_base.html.haml | 1 | ||||
-rw-r--r-- | app/views/shared/_tweet.html.haml | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/app/views/layouts/_base.html.haml b/app/views/layouts/_base.html.haml index eab9eb2..8997bd5 100644 --- a/app/views/layouts/_base.html.haml +++ b/app/views/layouts/_base.html.haml @@ -3,6 +3,7 @@ %head %title= @title = stylesheet_link_tag "application" + = javascript_include_tag "twitter" %body .navbar.navbar-static-top .navbar-inner diff --git a/app/views/shared/_tweet.html.haml b/app/views/shared/_tweet.html.haml index 3f76f1a..97408e5 100644 --- a/app/views/shared/_tweet.html.haml +++ b/app/views/shared/_tweet.html.haml @@ -1,7 +1,13 @@ .item .tweet - .avatar - = link_to image_tag(item.user.profile_image_url, :alt => item.user.screen_name, :title => item.user.name), :controller => "users", :action => "best", :screen_name => item.user.screen_name + .left + .avatar + = link_to image_tag(item.user.profile_image_url, :alt => item.user.screen_name, :title => item.user.name), :controller => "users", :action => "best", :screen_name => item.user.screen_name + %ul.inline.actions + %li + = link_to image_tag("reply.png", :alt => "reply"), "https://twitter.com/intent/tweet?in_reply_to=#{item.id}" + = link_to image_tag("retweet.png", :alt => "retweet"), "https://twitter.com/intent/retweet?tweet_id=#{item.id}" + = link_to image_tag("favorite.png", :alt => "favorite"), "https://twitter.com/intent/favorite?tweet_id=#{item.id}" .tweet_content_fix .tweet_content .user |