-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

%a.conversation{:href => conversation_path(conversation)}
  .stream_element.conversation{:data=>{:guid=>conversation.id}, :class => ('unread' if unread_counts[conversation.id].to_i > 0)}
    = person_image_tag(conversation.author)

    .subject
      .message_count
        = conversation.messages.size
      - if unread_counts[conversation.id].to_i > 0
        .unread_message_count
          = unread_counts[conversation.id].to_i

      %div{ :class => direction_for(conversation.subject) }
        = conversation.subject[0..30]

    .last_author
      .timestamp
        = t('ago', :time =>  time_ago_in_words(conversation.updated_at))
      - if not authors[conversation.id].nil?
        = authors[conversation.id].name

      - if conversation.participants.size > 2
        %span.participant_count
          = "(+#{conversation.participants.size - 1})"

-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

%a.conversation{:href => conversation_path(conversation)}
  .stream_element.conversation{:data=>{:guid=>conversation.id}, :class => ('unread' if unread_counts[conversation.id].to_i > 0)}
    = person_image_tag(conversation.author)

    .subject
      .message_count
        = conversation.messages.size
      - if unread_counts[conversation.id].to_i > 0
        .unread_message_count
          = unread_counts[conversation.id].to_i

      %div{ :class => direction_for(conversation.subject) }
        = conversation.subject[0..30]

    .last_author
      .timestamp
        = t('ago', :time =>  time_ago_in_words(conversation.updated_at))
      - if authors[conversation.id].present?
        = authors[conversation.id].name

      - if conversation.participants.size > 2
        %span.participant_count
          = "(+#{conversation.participants.size - 1})"

Fix my quick fix (use '.present?' instead of 'not .nil?')
Fix my quick fix (use '.present?' instead of 'not .nil?')
