Sha256: 03d3528168e35b28e55ad73afe4aef490fee9f2b56bf4168c43c2ad77ea1ecae

Contents?: true

Size: 1.68 KB

Versions: 5

Compression:

Stored size: 1.68 KB

Contents

<main class="wrapper">
  <div class="row">
    <div class="columns">
      <div class="title-action" >
        <h1 class="heading1 title-action__title">
          <%= t(".title") %>
        </h1>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="columns large-8">
      <% if @conversations.empty? %>
        <div class="callout secondary">
          <p><%= t(".no_conversations") %></p>
        </div>
      <% else %>
        <div class="card card--list conversations">
          <% @conversations.each do |conversation| %>
            <%= link_to decidim.conversation_path(conversation), class: "card--list__item" do %>
              <div class="card--list__titled-text">
                <h6 class="card--list__heading heading6">
                  <%= username_list(conversation.interlocutors(current_user)) %>
                </h6>

                <span class="card--list__annotation">
                  <%= simple_date(conversation.last_message.created_at) %>
                </span>

                <span class="text-small">
                  <%= truncate conversation.last_message.body, length: 150 %>
                </span>

                <% if conversation.unread_count(current_user) > 0 %>
                  <span class="card--list__counter">
                    <span><%= conversation.unread_count(current_user) %></span>
                  </span>
                <% end %>
              </div>
              <div class="card--list__data">
                <span class="card--list__data__icon">
                  <%= icon "chevron-right" %>
                </span>
              </div>
            <% end %>
          <% end %>
        </div>
      <% end %>
    </div>
  </div>
</main>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.8.4 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.8.3 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.8.2 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.8.1 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.8.0 app/views/decidim/messaging/conversations/index.html.erb