.row-fluid .span12 .header History - tutoring_session.messages.order("created_at DESC").each do |session_message| .row-fluid .span12 %div{:class => "comment #{cycle(:even, :odd)}"} .row-fluid .span2 = image_tag session_message.created_by.image.url(:thumb), width: 30, class: 'thumbnail pull-left mgn_r_10' .span9 .row-fluid .span10 %span.pull-left.comment_user{:style => "font-weight: bold;"} = session_message.created_by.name %span.pull-left.pad_h_5{:style => "font-size: 0.8em; font-style: italic; color: #bbb;"} = session_message.message_type %span.pull-left{:style => "font-size: 0.8em; font-style: bold; color: #000;"} = time_ago_in_words(session_message.created_at.in_time_zone) + " ago" .clear - if session_message.present? - unless session_message.message.blank? %span.txt_black.font_2.pad_l_10.showmore= format_text(session_message.message.to_s) - else %span.txt_black.italic.font_2.pad_l_10 = "Your #{session_message.created_by_type.downcase} did not include a message"