Permalink
Browse files

fix compact navigation on threads with no comments

  • Loading branch information...
1 parent 653731f commit e58ab8f2b8997530a623f3c33203fa1c40556fed @jrom jrom committed Feb 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/activities/_thread.haml
@@ -6,7 +6,7 @@
.thread{ :'data-id' => thread.id, :'data-class' => thread_class, :id => "thread_#{thread_id}" }
-# Title of the element
.comment.comment_header
- %span.time= posted_date comments.first.created_at
+ %span.time= posted_date(comments.first ? comments.first.created_at : thread.created_at)
.info
- icon = { "Conversation" => "comment", "Task" => "tick" }[thread.class.to_s]
%img{ :src => "/famfamfam/#{icon}.png", :style => 'padding: 4px' }

0 comments on commit e58ab8f

Please sign in to comment.