Skip to content

Commit 8f687f8

Browse files
committed
added author
1 parent 7231e45 commit 8f687f8

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

models/message.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Message = (data) ->
2121
this.author = data.author.name
2222
this.timeago = moment(new Date(data.updated)).fromNow()
2323
this.url = data.link.href
24+
this.author = data.author.name
2425

2526
Message.load = (cb) ->
2627
rest.get(messageFeed).on('complete', (data) ->

public/css/app.styl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ form.join
115115
border none
116116
border-radius(4px)
117117

118+
&.more
119+
text-align center
120+
.author
121+
color #888
122+
font-size .7em
123+
margin-top -3px
118124
.time
119125
color #888
120126
font-style italic

views/layout.jade

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ html(lang="en")
4545
each item in messages
4646
li
4747
a(href=item.url, target='_blank')
48-
.time= item.timeago
48+
.time= item.timeago
4949
h3= item.subject
50+
.author by #{item.author}
5051
p= item.body
5152

5253
.tweets.section
@@ -59,3 +60,5 @@ html(lang="en")
5960
.time #{item.timeago}
6061
h3= item.created_by
6162
p= item.tweet
63+
li
64+
a.more(href='https://twitter.com/#!/nodekc') more tweets...

0 commit comments

Comments
 (0)