aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/_base.html.haml1
-rw-r--r--app/views/shared/_tweet.html.haml10
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