app/views/themes/light/conversations/_card.html.erb in bullet_train-themes-light-1.2.27 vs app/views/themes/light/conversations/_card.html.erb in bullet_train-themes-light-1.3.0

- old
+ new

@@ -5,10 +5,10 @@ <%= 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> + <p class="text-xs text-slate-300 text-right hover:no-underline"><%= "#{t('global.time_ago', time: time_ago_in_words(conversation.last_message.created_at))}" if conversation.last_message.present? %></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"> \ No newline at end of file