Sha256: 4f219c74944105466c4eea6097e8343890d1dbe2e1d88f8a572bef5a758c5495

Contents?: true

Size: 1.54 KB

Versions: 17

Compression:

Stored size: 1.54 KB

Contents

<% conversation ||= subscription.conversation %>

<div class="<%= 'border-l-primary-500 border-l-4 border-primary-600' if subscription.unread? %>">

  <%= link_to [:account, current_user, :conversations, :subscriptions, conversation_id: subscription.conversation.id], class: "#{current_conversation ? 'bg-slate-100 border-l ' : 'bg-white'} h-28 p-1 flex border-b-2 cursor-pointer hover:no-underline  hover:bg-slate-50 relative items-center" do %>
    <div class="md:w-1/4 w-1/5 lg:inline-block md:hidden flex-shrink-0">
      <img src="<%= membership_profile_photo_url(conversation.last_message&.membership || current_membership)  %>" title="<%= current_membership.name %>" alt="<%= current_membership.name %>" class="md:w-14 md:h-14 w-12 h-12 rounded-full mx-auto border-1 border-white border-2 flex-none">
    </div>
    <div class="w-4/5 md:w-full lg:w-4/5 pl-4 pr-1 flex-initial truncate">
      <p class="text-xs text-slate-300 text-right hover:no-underline"><%= "#{time_ago_in_words conversation.last_message.created_at} ago" unless conversation.last_message.nil? %></p>
      <h2 class="<%= subscription.unread? ? 'font-bold text-slate-800' : 'font-semibold text-slate-600' %> "><%= conversation.subject&.label_string %></h2>
      <div class="text-slate-300">
        <%= conversation.last_message&.user&.label_string %>
      </div>
      <div class="h-8 text-slate-400 text-sm pt-1 hover:no-underline truncate">
        <%= Nokogiri::HTML.fragment(conversation.last_message.body).text unless conversation.last_message.nil? %>
      </div>
    </div>

  <% end %>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.2.27 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.26 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.25 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.24 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.23 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.22 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.21 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.20 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.19 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.18 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.17 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.16 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.15 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.14 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.13 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.12 app/views/themes/light/conversations/_card.html.erb
bullet_train-themes-light-1.2.11 app/views/themes/light/conversations/_card.html.erb