Skip to content

Commit

Permalink
Show to whom a direct message was sent
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed Oct 31, 2010
1 parent 166d373 commit ba59fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/templates/tweet.ejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<a href="http://twitter.com/<%= h(tweet.data.user.screen_name) %>" class="user-href"><img src="<%= h(tweet.data.user.profile_image_url) %>" alt="<%= h(tweet.data.user.name) %>" width="48" height="48" class="profile_image_url" /></a>
<% if(tweet.retweet) { %><a href="http://twitter.com/<%= h(tweet.retweet.user.screen_name) %>" class="retweet-user-href-icon"><img src="<%= h(tweet.retweet.user.profile_image_url) %>" alt="<%= h(tweet.retweet.user.name) %>" width="24" height="24" class="profile_image_url" /></a><% } %>
<div class="status">
<h3 class="h user-name"><%= tweet.direct_message ? '<strong>Direct Message from</strong> ' : ''%><a href="http://twitter.com/<%= h(tweet.data.user.screen_name) %>" class="user-href"><%= h(tweet.yourself ? 'you' : tweet.data.user.name) %></a><% if(tweet.retweet) { %> via <a href="http://twitter.com/<%= h(tweet.retweet.user.screen_name) %>" class="retweet-user-href"><%= h(tweet.retweet.user.name) %></a><% }%>
<h3 class="h user-name"><%= tweet.direct_message ? '<strong>Direct Message from</strong> ' : ''%><a href="http://twitter.com/<%= h(tweet.data.user.screen_name) %>" class="user-href"><%= h(tweet.yourself ? 'you' : tweet.data.user.name) %></a><%= tweet.direct_message ? ' to <a href="http://twitter.com/'+h(tweet.data.recipient.screen_name)+'">'+h(tweet.data.recipient.screen_name)+'</a>' : ''%><% if(tweet.retweet) { %> via <a href="http://twitter.com/<%= h(tweet.retweet.user.screen_name) %>" class="retweet-user-href"><%= h(tweet.retweet.user.name) %></a><% }%>
<% if(tweet.data.geo && tweet.data.geo.coordinates) { %> <a class="status-geo" href="http://maps.google.com/maps?q=<%= h(tweet.data.geo.coordinates.join(',')) %>">from here ⌘</a><% } %></h3>
<p class="text"><%= tweet.textHTML %></p>
<div class="time created_at"><a href="<%= h(tweet.direct_message ? 'http://twitter.com/direct_messages/create/'+tweet.data.sender.screen_name : 'http://twitter.com/'+tweet.data.user.screen_name+'/status/'+tweet.data.id) %>"></a></div>
Expand Down

0 comments on commit ba59fbd

Please sign in to comment.