Sha256: c41fa9740dc85c9eb99fdc9799290830cf367118849aa54e19212f661b8326d5

Contents?: true

Size: 1.77 KB

Versions: 23

Compression:

Stored size: 1.77 KB

Contents

<%= div_for(conversation, :class =>"#{ 'unread ' if conversation.is_unread?(@actor) }") do %>

  <div class="content_left">
    <div class="avatar">
      <%= link_to image_tag(conversation.last_sender.logo.url(:small),
                            :title => conversation.last_sender.name,
                            :alt => conversation.last_sender.name),
                  conversation.last_sender.subject %>
    </div>

    <header>
      <h5>
        <%= link_to truncate_name(conversation.last_sender.name), conversation.last_sender.subject %>
      </h5>
      <div class="date">
        <%= t('time.ago', :time => time_ago_in_words(conversation.updated_at)) %>
      </div>
    </header>

  </div>

  <div class="content_right">

    <div class="subject">
      <%= link_to(truncate(conversation.subject, :length => 55), conversation_path(conversation.id,:box => @box,:page => params[:page])) %>
    </div>

    <% unless @box.eql?'trash' %>
      <div class="action">
      
        <%= link_to(image_tag('cancel.png', :alt => t('mailboxer.delete'), :title => t('mailboxer.delete')),
                    conversation_path(conversation, :location => @box,
                                                    :box => @box,
                                                    :page => params[:page]),
                                                    :confirm => t('mailboxer.delete_confirm',
                                                                  :object => conversation.subject),
                                                    :method => :delete,
                                                    :remote => true) %>
      </div>
    <% end %>

    <div class="briefing">
      <%= raw(truncate(strip_tags(conversation.last_message.body), :length => 50)) %>
    </div>
  </div>
<% end %>

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.2.2 app/views/conversations/_conversation.html.erb
social_stream-2.2.1 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.2.1 app/views/conversations/_conversation.html.erb
social_stream-2.2.0 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.2.0 app/views/conversations/_conversation.html.erb
social_stream-2.1.1 base/app/views/conversations/_conversation.html.erb
social_stream-2.1.0 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.1.0 app/views/conversations/_conversation.html.erb
social_stream-2.0.4 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.0.4 app/views/conversations/_conversation.html.erb
social_stream-2.0.3 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.0.3 app/views/conversations/_conversation.html.erb
social_stream-2.0.2 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.0.2 app/views/conversations/_conversation.html.erb
social_stream-2.0.1 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.0.1 app/views/conversations/_conversation.html.erb
social_stream-2.0.0 base/app/views/conversations/_conversation.html.erb
social_stream-base-2.0.0 app/views/conversations/_conversation.html.erb
social_stream-2.0.0.beta3 base/app/views/conversations/_conversation.html.erb