blob: 01cf01abbe7f8aadf6788027b8ead8e4d7987a2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
- # style is super ugly but just for now
- if admin? or !comment.private # only show comment if user is admin or comment is not private
%tr
%td
- if comment.posted_by_user
%b
= 'Posted by' + (comment.posted_by_user.is_admin? ? ' admin' : '') + ':'
= comment.posted_by_user.login
- else
Unauthenticated post
- if comment.private
(Private comment)
.pull-right
%b
Posted at:
= comment.posted_at.to_s(:short)
%br
= comment.body
|