Skip to content

Commit

Permalink
messages views
Browse files Browse the repository at this point in the history
  • Loading branch information
marksupalla committed Aug 31, 2014
1 parent 02048ce commit b9a4007
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/users/message.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends ../shared/template
block content
h2 Message from:
h3= msg.sender.name
h4
p Date : #{msg.date.toDateString()}
p Body : #{msg.message}

block scripts
19 changes: 19 additions & 0 deletions app/views/users/messages.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
extends ../shared/template
block content
.ro
.col-xs-12
table.table.table-hover.table-striped.table-bordered
thead
tr
th From
th Date
th Message
tbody
each msg in msgs
tr(style='background-color:#{msg.isRead ? "#ECECEC" : "#8C8A8D"}')
td: a(href='/users/#{msg.sender.email}')= msg.sender.name
td= msg.date.toDateString()
td: a(href='/messages/#{msg._id}')= (msg.message.slice(0, 20) + ' .....')
.col-xs-6

block scripts

0 comments on commit b9a4007

Please sign in to comment.