Sha256: 9c428bb13052774b3e9c29e44886df99cd7fc5791529dc6c0dca9caa9a83dbc7

Contents?: true

Size: 1.88 KB

Versions: 46

Compression:

Stored size: 1.88 KB

Contents

<% add_decidim_page_title(t("conversations", scope: "layouts.decidim.user_menu")) %>

<div 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">
      <div class="row columns">
        <%= render partial: "new_conversation_button" %>
      </div>

      <% if @conversations.empty? %>
        <div class="callout secondary">
          <p><%= t(".no_conversations") %></p>
        </div>
      <% else %>
        <div class="tabs-panel is-active conversations" id="conversations" role="tabpanel" aria-label="<%= t(".title") %>">
          <%= render partial: "conversation", collection: @conversations %>
        </div>
      <% end %>
    </div>

    <% if user_groups.present? %>
      <div class="columns large-4 conversation-groups">
        <div class="row columns title-action">
          <h4 class="heading4">
            <%= t(".groups") %>
          </h4>
        </div>
        <div class="tabs-panel is-active">
          <div class="card card--list user-groups">
            <% user_groups.each do |group| %>
              <div class="card--list__item">
                <%= link_to decidim.profile_conversations_path(nickname: group.nickname), class: "card--list__author" do %>
                  <%= cell("decidim/user_profile", group).unlinked_user_data.html_safe %>
                  <% if group.unread_messages_count_for(current_user).positive? %>
                    <span class="card--list__counter">
                      <span><%= group.unread_messages_count_for(current_user) %></span>
                    </span>
                  <% end %>
                <% end %>
              </div>
            <% end %>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-core-0.26.1 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.26.0 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.26.0.rc2 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.26.0.rc1 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.2 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.1 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.0 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.0.rc4 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.0.rc3 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.0.rc2 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.25.0.rc1 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.24.3 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.23.6 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.24.2 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.23.5 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.24.1 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.24.0 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.24.0.rc2 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.23.4 app/views/decidim/messaging/conversations/index.html.erb
decidim-core-0.24.0.rc1 app/views/decidim/messaging/conversations/index.html.erb