Sha256: 40828296d44216b893a32c0ae354d76ff6eb1259e0e16ad9aebd1e1da3025a5a

Contents?: true

Size: 1.57 KB

Versions: 9

Compression:

Stored size: 1.57 KB

Contents

<% if participants.count == 1 %>
  <% conversation_label = t(".chat_with") + " #{participants.first.name} (@#{participants.first.nickname})" %>
<% else %>
  <% conversation_label = t(".title", usernames: username_list(participants)) %>
<% end %>

<div class="wrapper">
  <div class="row">
    <div class="columns medium-9 medium-centered tabs-panel is-active" id="conversations" role="tabpanel" aria-label="<%= conversation_label %>">
      <div class="conversation">

        <div class="conversation-header flex--cc absolutes">
          <div class="left center mr-s">
            <%= link_to decidim.conversations_path, class: "card--list__data__icon card--list__data__icon--back" do %>
              <%= icon "chevron-left", role: "img", aria_label: t(".back") %>
            <% end %>
          </div>
          <%= link_to decidim.conversations_path do %>
            <% if participants.count == 1 %>
              <%= image_tag participants.first.avatar_url, alt: t("decidim.author.avatar") %>
            <% else %>
              <%= image_tag current_user.avatar.default_multiuser_url, alt: t("decidim.author.avatar") %>
            <% end %>
          <% end %>

          <div class="ml-s">
            <% if participants.count == 1 %>
              <%= t(".chat_with") %> <strong><%= participants.first.name %></strong><br><span class="muted">@<%= participants.first.nickname %></span>
            <% else %>
              <%= t(".title", usernames: username_list(participants)) %>
            <% end %>
          </div>
        </div>

        <%= yield %>

      </div>
    </div>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.5 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.4 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.3 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.2 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.1 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.1.rc1 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.23.0 app/views/decidim/messaging/conversations/_show.html.erb
decidim-core-0.22.0 app/views/decidim/messaging/conversations/_show.html.erb