Sha256: 2745fc524bc00b131c7b968128e281abaa64ed931120250dcf55830f08cb3bab

Contents?: true

Size: 1.75 KB

Versions: 7

Compression:

Stored size: 1.75 KB

Contents

<div class="card card--widget">
  <ul class="card-data">
    <li class="card-data__item">
      <div class="card__link text-center">
        <div class="user-header__avatar">
          <%= image_tag conversation_avatar(conversation), alt: conversation_avatar_alt(conversation) %>
        </div>
        <span class="text-medium mt-xs"><%= Date::ABBR_DAYNAMES[conversation.created_at.wday] %> <%= conversation.created_at.wday %></span>
      </div>
    </li>
    <li class="card-data__item card--list__item card-data__item--expand absolutes">
      <div class="mr-s">
        <%= t("decidim.user_conversations.index.from") %>: <strong><%= conversation_interlocutors(conversation) %></strong>
        <br>
        <span class="muted">
          <%= truncate conversation.last_message.body, length: 150 %>
        </span>
        <br>
        <span class="text-small">
          <%= t("decidim.user_conversations.index.last_message") %>:
          <strong title="<%= conversation.last_message.friendly_created_at %>">
            <%= t("decidim.user_conversations.index.time_ago", time: time_ago_in_words(Time.parse(conversation.last_message.created_at.to_s))) %>
          </strong>
        </span>
      </div>
      <% if conversation.unread_count(current_user).positive? %>
        <span class="unread_message__counter">
          <span><%= conversation.unread_count(current_user) %></span>
        </span>
      <% end %>
      <div class="right center mr-s">
        <%= link_to decidim.profile_conversation_path(nickname: user.nickname, id: conversation), id: "conversation-#{conversation.id}", class: "user-header__avatar", "data-tabs-target": "conversation" do %>
          <%= icon "chevron-right", class: "card__link icon--big" %>
        <% end %>
      </div>
    </li>
  </ul>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.25.2 app/cells/decidim/user_conversations/conversation_item.erb
decidim-core-0.25.1 app/cells/decidim/user_conversations/conversation_item.erb
decidim-core-0.25.0 app/cells/decidim/user_conversations/conversation_item.erb
decidim-core-0.25.0.rc4 app/cells/decidim/user_conversations/conversation_item.erb
decidim-core-0.25.0.rc3 app/cells/decidim/user_conversations/conversation_item.erb
decidim-core-0.25.0.rc2 app/cells/decidim/user_conversations/conversation_item.erb
decidim-core-0.25.0.rc1 app/cells/decidim/user_conversations/conversation_item.erb