blob: ae7f1d4bc0f58072412bc82c6b845e268e91fad3 (
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 commenter = User.find(comment.posted_by)
%b
= 'Posted by' + (commenter.is_admin? ? ' admin' : '') + ':'
= commenter.login
- else
Unauthenticated post
- if comment.private
(Private comment)
.pull-right
%b
Posted at:
= comment.posted_at.to_s(:short)
%br
= comment.body
|