Fixed bug in comments partial on missing users.
This commit is contained in:
parent
84a026a677
commit
8a37a0e746
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
- comments.each do |comment|
|
- comments.each do |comment|
|
||||||
.comment[comment]
|
.comment[comment]
|
||||||
.timestamp
|
.timestamp
|
||||||
%b=h "#{comment.user.ordergroup_name}"
|
%b=h "#{comment.user.try(:ordergroup_name)}"
|
||||||
= "(#{comment.user.nick} am #{format_time(comment.created_at)}):"
|
= "(#{comment.user.try(:nick)} am #{format_time(comment.created_at)}):"
|
||||||
= simple_format(comment.text)
|
= simple_format(comment.text)
|
||||||
- else
|
- else
|
||||||
es gibt derzeit keine Kommentare.
|
es gibt derzeit keine Kommentare.
|
Loading…
Reference in a new issue