Skip to content

Commit

Permalink
Link email view back to the original tweet
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Dec 12, 2011
1 parent 5204100 commit 6ce96e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions models/email_reply.rb
@@ -1,2 +1,5 @@
class EmailReply < ActiveRecord::Base
def in_reply_to_twitter_url
"http://twitter.com/#{in_reply_to_screen_name}/status/#{in_reply_to_status_id}"
end
end
5 changes: 4 additions & 1 deletion views/emails/show.haml
Expand Up @@ -2,4 +2,7 @@
%p Subject: #{@email.subject}
%p= @email.stripped_text
%p
This email was in reply to a tweet
This email was in reply to
%a{:href => @email.in_reply_to_twitter_url}
a tweet
from @#{@email.in_reply_to_screen_name}

0 comments on commit 6ce96e9

Please sign in to comment.