blob: 501ceec7d53040fdcdf009b7e27669b5b01e32bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
- # 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
%b
Unauthenticated post
- if comment.private
(Private comment)
.pull-right
%b
Posted at:
= comment.posted_at.to_s(:short)
%br
= comment.body
|