Skip to content

Commit

Permalink
Linking timestamp to status page. Closes #70
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Jan 13, 2010
1 parent f6ec22b commit 53f1b62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion popup.html
Expand Up @@ -499,9 +499,11 @@
renderTweet: function (tweet) {
var user = tweet.user;
var text = tweet.text;
var tweetId = tweet.id;
if(tweet.retweeted_status) {
user = tweet.retweeted_status.user
text = tweet.retweeted_status.text
tweetId = tweet.retweeted_status.id;
}
text = this.transformTweetText(text);

Expand Down Expand Up @@ -542,7 +544,8 @@
str += text + '</div>';

str += '<div class="footer">';
str += '<span class="timestamp" title="' + Renderer.getTimestampAltText(tweet.created_at) + '">' + Renderer.getTimestampText(tweet.created_at) + '</span> ';
var statusLinkDst = TwitterLib.URLS.BASE + user.screen_name + '/status/' + tweetId;
str += '<a href="' + statusLinkDst + '" onclick="openTab(\'' + statusLinkDst + '\')"><span class="timestamp" title="' + Renderer.getTimestampAltText(tweet.created_at) + '">' + Renderer.getTimestampText(tweet.created_at) + '</span></a> ';
if(inReply) {
str += inReply;
} else if(tweet.retweeted_status) {
Expand Down

0 comments on commit 53f1b62

Please sign in to comment.