Fixed bug in comments partial on missing users.

This commit is contained in:
Benjamin Meichsner 2009-09-11 16:10:18 +02:00
parent 84a026a677
commit 8a37a0e746

View file

@ -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.