Skip to content

Commit f06bd5d

Browse files
committed
Urls in tweets will now be shown in the green, differintiating them from the tweet text.
1 parent a57c5ee commit f06bd5d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

models/tweet.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ twitter_feed_url = 'http://search.twitter.com/search.json?q=%40nodekc&rpp=5&incl
66

77
Tweet = (data) ->
88
this.created_by = data.from_user
9-
console.log data
10-
this.tweet = twitter.autoLink data.text, urlEntities: data.entities.urls
9+
this.tweet = twitter.autoLink data.text, { urlEntities: data.entities.urls, urlClass: 'tweet-url' }
1110
this.timeago = moment(new Date(data.created_at)).fromNow()
1211
this.created_at = data.created_at
1312
return

public/css/app.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ form.join
107107
color #9DD95C
108108
.time
109109
color #999
110+
111+
a.tweet-url
112+
color #8CC84B
113+
110114
.more
111115
a
112116
text-align center

0 commit comments

Comments
 (0)